~ubuntu-branches/ubuntu/jaunty/gnupg2/jaunty-security

« back to all changes in this revision

Viewing changes to scripts/config.rpath

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

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-2007 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
40
25
#   known workaround is to choose shorter directory names for the build
41
26
#   directory and/or the installation directory.
42
27
 
43
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
28
# All known linkers require a `.a' archive for static linking (except MSVC,
44
29
# which needs '.lib').
45
30
libext=a
46
31
shrext=.so
50
35
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
51
36
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
52
37
 
 
38
# Code taken from libtool.m4's _LT_CC_BASENAME.
 
39
 
 
40
for cc_temp in $CC""; do
 
41
  case $cc_temp in
 
42
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
43
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
44
    \-*) ;;
 
45
    *) break;;
 
46
  esac
 
47
done
 
48
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
 
49
 
53
50
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
54
51
 
55
52
wl=
60
57
    aix*)
61
58
      wl='-Wl,'
62
59
      ;;
63
 
    mingw* | pw32* | os2*)
 
60
    darwin*)
 
61
      case $cc_basename in
 
62
        xlc*)
 
63
          wl='-Wl,'
 
64
          ;;
 
65
      esac
 
66
      ;;
 
67
    mingw* | cygwin* | pw32* | os2*)
64
68
      ;;
65
69
    hpux9* | hpux10* | hpux11*)
66
70
      wl='-Wl,'
70
74
      ;;
71
75
    newsos6)
72
76
      ;;
73
 
    linux*)
74
 
      case $CC in
75
 
        icc|ecc)
76
 
          wl='-Wl,'
77
 
          ;;
78
 
        ccc)
79
 
          wl='-Wl,'
 
77
    linux* | k*bsd*-gnu)
 
78
      case $cc_basename in
 
79
        icc* | ecc*)
 
80
          wl='-Wl,'
 
81
          ;;
 
82
        pgcc | pgf77 | pgf90)
 
83
          wl='-Wl,'
 
84
          ;;
 
85
        ccc*)
 
86
          wl='-Wl,'
 
87
          ;;
 
88
        como)
 
89
          wl='-lopt='
 
90
          ;;
 
91
        *)
 
92
          case `$CC -V 2>&1 | sed 5q` in
 
93
            *Sun\ C*)
 
94
              wl='-Wl,'
 
95
              ;;
 
96
          esac
80
97
          ;;
81
98
      esac
82
99
      ;;
83
100
    osf3* | osf4* | osf5*)
84
101
      wl='-Wl,'
85
102
      ;;
86
 
    sco3.2v5*)
 
103
    rdos*)
87
104
      ;;
88
105
    solaris*)
89
106
      wl='-Wl,'
91
108
    sunos4*)
92
109
      wl='-Qoption ld '
93
110
      ;;
94
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
111
    sysv4 | sysv4.2uw2* | sysv4.3*)
95
112
      wl='-Wl,'
96
113
      ;;
97
114
    sysv4*MP*)
98
115
      ;;
 
116
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
117
      wl='-Wl,'
 
118
      ;;
 
119
    unicos*)
 
120
      wl='-Wl,'
 
121
      ;;
99
122
    uts4*)
100
123
      ;;
101
124
  esac
117
140
      with_gnu_ld=no
118
141
    fi
119
142
    ;;
 
143
  interix*)
 
144
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
145
    with_gnu_ld=yes
 
146
    ;;
120
147
  openbsd*)
121
148
    with_gnu_ld=no
122
149
    ;;
124
151
 
125
152
ld_shlibs=yes
126
153
if test "$with_gnu_ld" = yes; then
 
154
  # Set some defaults for GNU ld with shared library support. These
 
155
  # are reset later if shared libraries are not supported. Putting them
 
156
  # here allows them to be overridden if necessary.
 
157
  # Unlike libtool, we use -rpath here, not --rpath, since the documented
 
158
  # option of GNU ld is called -rpath, not --rpath.
 
159
  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
127
160
  case "$host_os" in
128
161
    aix3* | aix4* | aix5*)
129
162
      # On AIX/PPC, the GNU linker is very broken
138
171
      # that the semantics of dynamic libraries on AmigaOS, at least up
139
172
      # to version 4, is to share data among multiple programs linked
140
173
      # with the same dynamic library.  Since this doesn't match the
141
 
      # behavior of shared libraries on other platforms, we can use
 
174
      # behavior of shared libraries on other platforms, we cannot use
142
175
      # them.
143
176
      ld_shlibs=no
144
177
      ;;
159
192
        ld_shlibs=no
160
193
      fi
161
194
      ;;
 
195
    interix[3-9]*)
 
196
      hardcode_direct=no
 
197
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
198
      ;;
 
199
    gnu* | linux* | k*bsd*-gnu)
 
200
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
201
        :
 
202
      else
 
203
        ld_shlibs=no
 
204
      fi
 
205
      ;;
162
206
    netbsd*)
163
207
      ;;
164
 
    solaris* | sysv5*)
 
208
    solaris*)
165
209
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
166
210
        ld_shlibs=no
167
211
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
170
214
        ld_shlibs=no
171
215
      fi
172
216
      ;;
 
217
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
218
      case `$LD -v 2>&1` in
 
219
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
220
          ld_shlibs=no
 
221
          ;;
 
222
        *)
 
223
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
224
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
225
          else
 
226
            ld_shlibs=no
 
227
          fi
 
228
          ;;
 
229
      esac
 
230
      ;;
173
231
    sunos4*)
174
232
      hardcode_direct=yes
175
233
      ;;
181
239
      fi
182
240
      ;;
183
241
  esac
184
 
  if test "$ld_shlibs" = yes; then
185
 
    # Unlike libtool, we use -rpath here, not --rpath, since the documented
186
 
    # option of GNU ld is called -rpath, not --rpath.
187
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
242
  if test "$ld_shlibs" = no; then
 
243
    hardcode_libdir_flag_spec=
188
244
  fi
189
245
else
190
246
  case "$host_os" in
215
271
              break
216
272
            fi
217
273
          done
 
274
          ;;
218
275
        esac
219
276
      fi
220
277
      hardcode_direct=yes
226
283
            strings "$collect2name" | grep resolve_lib_name >/dev/null
227
284
          then
228
285
            # We have reworked collect2
229
 
            hardcode_direct=yes
 
286
            :
230
287
          else
231
288
            # We have old collect2
232
289
            hardcode_direct=unsupported
234
291
            hardcode_libdir_flag_spec='-L$libdir'
235
292
            hardcode_libdir_separator=
236
293
          fi
 
294
          ;;
237
295
        esac
238
296
      fi
239
297
      # Begin _LT_AC_SYS_LIBPATH_AIX.
266
324
      # see comment about different semantics on the GNU ld section
267
325
      ld_shlibs=no
268
326
      ;;
269
 
    bsdi4*)
 
327
    bsdi[45]*)
270
328
      ;;
271
329
    cygwin* | mingw* | pw32*)
272
330
      # When not using gcc, we currently assume that we are using
277
335
      libext=lib
278
336
      ;;
279
337
    darwin* | rhapsody*)
280
 
      if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
281
 
        hardcode_direct=no
 
338
      hardcode_direct=no
 
339
      if test "$GCC" = yes ; then
 
340
        :
 
341
      else
 
342
        case $cc_basename in
 
343
          xlc*)
 
344
            ;;
 
345
          *)
 
346
            ld_shlibs=no
 
347
            ;;
 
348
        esac
282
349
      fi
283
350
      ;;
284
351
    dgux*)
295
362
      hardcode_direct=yes
296
363
      hardcode_minus_L=yes
297
364
      ;;
298
 
    freebsd*)
 
365
    freebsd* | dragonfly*)
299
366
      hardcode_libdir_flag_spec='-R$libdir'
300
367
      hardcode_direct=yes
301
368
      ;;
307
374
      # but as the default location of the library.
308
375
      hardcode_minus_L=yes
309
376
      ;;
310
 
    hpux10* | hpux11*)
311
 
      if test "$with_gnu_ld" = no; then
312
 
        case "$host_cpu" in
313
 
          hppa*64*)
314
 
            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
315
 
            hardcode_libdir_separator=:
316
 
            hardcode_direct=no
317
 
            ;;
318
 
          ia64*)
319
 
            hardcode_libdir_flag_spec='-L$libdir'
320
 
            hardcode_direct=no
321
 
            # hardcode_minus_L: Not really in the search PATH,
322
 
            # but as the default location of the library.
323
 
            hardcode_minus_L=yes
 
377
    hpux10*)
 
378
      if test "$with_gnu_ld" = no; then
 
379
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
380
        hardcode_libdir_separator=:
 
381
        hardcode_direct=yes
 
382
        # hardcode_minus_L: Not really in the search PATH,
 
383
        # but as the default location of the library.
 
384
        hardcode_minus_L=yes
 
385
      fi
 
386
      ;;
 
387
    hpux11*)
 
388
      if test "$with_gnu_ld" = no; then
 
389
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
390
        hardcode_libdir_separator=:
 
391
        case $host_cpu in
 
392
          hppa*64*|ia64*)
 
393
            hardcode_direct=no
324
394
            ;;
325
395
          *)
326
 
            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
327
 
            hardcode_libdir_separator=:
328
396
            hardcode_direct=yes
329
397
            # hardcode_minus_L: Not really in the search PATH,
330
398
            # but as the default location of the library.
347
415
      hardcode_libdir_separator=:
348
416
      ;;
349
417
    openbsd*)
350
 
      hardcode_direct=yes
351
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
352
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
418
      if test -f /usr/libexec/ld.so; then
 
419
        hardcode_direct=yes
 
420
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
421
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
422
        else
 
423
          case "$host_os" in
 
424
            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
425
              hardcode_libdir_flag_spec='-R$libdir'
 
426
              ;;
 
427
            *)
 
428
              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
429
              ;;
 
430
          esac
 
431
        fi
353
432
      else
354
 
        case "$host_os" in
355
 
          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
356
 
            hardcode_libdir_flag_spec='-R$libdir'
357
 
            ;;
358
 
          *)
359
 
            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
360
 
            ;;
361
 
        esac
 
433
        ld_shlibs=no
362
434
      fi
363
435
      ;;
364
436
    os2*)
378
450
      fi
379
451
      hardcode_libdir_separator=:
380
452
      ;;
381
 
    sco3.2v5*)
382
 
      ;;
383
453
    solaris*)
384
454
      hardcode_libdir_flag_spec='-R$libdir'
385
455
      ;;
408
478
        ld_shlibs=yes
409
479
      fi
410
480
      ;;
411
 
    sysv4.2uw2*)
412
 
      hardcode_direct=yes
413
 
      hardcode_minus_L=no
414
 
      ;;
415
 
    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
416
 
      ;;
417
 
    sysv5*)
418
 
      hardcode_libdir_flag_spec=
 
481
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
482
      ;;
 
483
    sysv5* | sco3.2v5* | sco5v6*)
 
484
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
485
      hardcode_libdir_separator=':'
419
486
      ;;
420
487
    uts4*)
421
488
      hardcode_libdir_flag_spec='-L$libdir'
428
495
 
429
496
# Check dynamic linker characteristics
430
497
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
 
498
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
 
499
# only about the one the linker finds when passed -lNAME. This is the last
 
500
# element of library_names_spec in libtool.m4, or possibly two of them if the
 
501
# linker has special search rules.
 
502
library_names_spec=      # the last element of library_names_spec in libtool.m4
431
503
libname_spec='lib$name'
432
504
case "$host_os" in
433
505
  aix3*)
 
506
    library_names_spec='$libname.a'
434
507
    ;;
435
508
  aix4* | aix5*)
 
509
    library_names_spec='$libname$shrext'
436
510
    ;;
437
511
  amigaos*)
 
512
    library_names_spec='$libname.a'
438
513
    ;;
439
514
  beos*)
 
515
    library_names_spec='$libname$shrext'
440
516
    ;;
441
 
  bsdi4*)
 
517
  bsdi[45]*)
 
518
    library_names_spec='$libname$shrext'
442
519
    ;;
443
520
  cygwin* | mingw* | pw32*)
444
521
    shrext=.dll
 
522
    library_names_spec='$libname.dll.a $libname.lib'
445
523
    ;;
446
524
  darwin* | rhapsody*)
447
525
    shrext=.dylib
 
526
    library_names_spec='$libname$shrext'
448
527
    ;;
449
528
  dgux*)
 
529
    library_names_spec='$libname$shrext'
450
530
    ;;
451
531
  freebsd1*)
452
532
    ;;
453
 
  freebsd*)
 
533
  freebsd* | dragonfly*)
 
534
    case "$host_os" in
 
535
      freebsd[123]*)
 
536
        library_names_spec='$libname$shrext$versuffix' ;;
 
537
      *)
 
538
        library_names_spec='$libname$shrext' ;;
 
539
    esac
454
540
    ;;
455
541
  gnu*)
 
542
    library_names_spec='$libname$shrext'
456
543
    ;;
457
544
  hpux9* | hpux10* | hpux11*)
458
 
    case "$host_cpu" in
 
545
    case $host_cpu in
459
546
      ia64*)
460
547
        shrext=.so
461
548
        ;;
466
553
        shrext=.sl
467
554
        ;;
468
555
    esac
 
556
    library_names_spec='$libname$shrext'
 
557
    ;;
 
558
  interix[3-9]*)
 
559
    library_names_spec='$libname$shrext'
469
560
    ;;
470
561
  irix5* | irix6* | nonstopux*)
 
562
    library_names_spec='$libname$shrext'
471
563
    case "$host_os" in
472
564
      irix5* | nonstopux*)
473
565
        libsuff= shlibsuff=
484
576
    ;;
485
577
  linux*oldld* | linux*aout* | linux*coff*)
486
578
    ;;
487
 
  linux*)
 
579
  linux* | k*bsd*-gnu)
 
580
    library_names_spec='$libname$shrext'
 
581
    ;;
 
582
  knetbsd*-gnu)
 
583
    library_names_spec='$libname$shrext'
488
584
    ;;
489
585
  netbsd*)
 
586
    library_names_spec='$libname$shrext'
490
587
    ;;
491
588
  newsos6)
 
589
    library_names_spec='$libname$shrext'
492
590
    ;;
493
 
  nto-qnx)
 
591
  nto-qnx*)
 
592
    library_names_spec='$libname$shrext'
494
593
    ;;
495
594
  openbsd*)
 
595
    library_names_spec='$libname$shrext$versuffix'
496
596
    ;;
497
597
  os2*)
498
598
    libname_spec='$name'
499
599
    shrext=.dll
 
600
    library_names_spec='$libname.a'
500
601
    ;;
501
602
  osf3* | osf4* | osf5*)
 
603
    library_names_spec='$libname$shrext'
502
604
    ;;
503
 
  sco3.2v5*)
 
605
  rdos*)
504
606
    ;;
505
607
  solaris*)
 
608
    library_names_spec='$libname$shrext'
506
609
    ;;
507
610
  sunos4*)
 
611
    library_names_spec='$libname$shrext$versuffix'
508
612
    ;;
509
 
  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
613
  sysv4 | sysv4.3*)
 
614
    library_names_spec='$libname$shrext'
510
615
    ;;
511
616
  sysv4*MP*)
 
617
    library_names_spec='$libname$shrext'
 
618
    ;;
 
619
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
620
    library_names_spec='$libname$shrext'
512
621
    ;;
513
622
  uts4*)
 
623
    library_names_spec='$libname$shrext'
514
624
    ;;
515
625
esac
516
626
 
517
627
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
518
628
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
519
629
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
 
630
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
 
631
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
520
632
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
521
633
 
522
 
sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
 
634
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
523
635
 
524
636
# How to pass a linker flag through the compiler.
525
637
wl="$escaped_wl"
530
642
# Shared library suffix (normally "so").
531
643
shlibext="$shlibext"
532
644
 
 
645
# Format of library name prefix.
 
646
libname_spec="$escaped_libname_spec"
 
647
 
 
648
# Library names that the linker finds when passed -lNAME.
 
649
library_names_spec="$escaped_library_names_spec"
 
650
 
533
651
# Flag to hardcode \$libdir into a binary during linking.
534
652
# This must work even if \$libdir does not exist.
535
653
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"