~serge-hallyn/ubuntu/natty/lxc/lxc-fix-3bugs

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2009-07-25 12:24:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090725122430-dxv1wb7ds07fc0sk
Tags: 0.6.3-1
* New Upstream Version
* Remove duplicate build-dependency on autotools-dev
* Build depend on linux-libc-dev
* Disable checking of netlink headers from configure
  (currently fails under sid)
* Upgrade standards-version to 3.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
23
 
24
 
# serial 51 AC_PROG_LIBTOOL
 
24
# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
25
25
 
26
26
 
27
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
109
109
AC_REQUIRE([AC_OBJEXT])dnl
110
110
AC_REQUIRE([AC_EXEEXT])dnl
111
111
dnl
112
 
 
113
112
AC_LIBTOOL_SYS_MAX_CMD_LEN
114
113
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
115
114
AC_LIBTOOL_OBJDIR
211
210
  ;;
212
211
esac
213
212
 
 
213
_LT_REQUIRED_DARWIN_CHECKS
 
214
 
214
215
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
215
216
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
216
217
enable_win32_dll=yes, enable_win32_dll=no)
290
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
291
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
292
293
_lt_linker_boilerplate=`cat conftest.err`
293
 
$rm conftest*
 
294
$rm -r conftest*
294
295
])# _LT_LINKER_BOILERPLATE
295
296
 
 
297
# _LT_REQUIRED_DARWIN_CHECKS
 
298
# --------------------------
 
299
# Check for some things on darwin
 
300
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
301
  case $host_os in
 
302
    rhapsody* | darwin*)
 
303
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
304
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
305
 
 
306
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
307
      [lt_cv_apple_cc_single_mod=no
 
308
      if test -z "${LT_MULTI_MODULE}"; then
 
309
   # By default we will add the -single_module flag. You can override
 
310
   # by either setting the environment variable LT_MULTI_MODULE
 
311
   # non-empty at configure time, or by adding -multi_module to the
 
312
   # link flags.
 
313
   echo "int foo(void){return 1;}" > conftest.c
 
314
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
315
     -dynamiclib ${wl}-single_module conftest.c
 
316
   if test -f libconftest.dylib; then
 
317
     lt_cv_apple_cc_single_mod=yes
 
318
     rm -rf libconftest.dylib*
 
319
   fi
 
320
   rm conftest.c
 
321
      fi])
 
322
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
323
      [lt_cv_ld_exported_symbols_list],
 
324
      [lt_cv_ld_exported_symbols_list=no
 
325
      save_LDFLAGS=$LDFLAGS
 
326
      echo "_main" > conftest.sym
 
327
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
328
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
329
   [lt_cv_ld_exported_symbols_list=yes],
 
330
   [lt_cv_ld_exported_symbols_list=no])
 
331
   LDFLAGS="$save_LDFLAGS"
 
332
    ])
 
333
    case $host_os in
 
334
    rhapsody* | darwin1.[[0123]])
 
335
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
336
    darwin1.*)
 
337
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
338
    darwin*)
 
339
      # if running on 10.5 or later, the deployment target defaults
 
340
      # to the OS version, if on x86, and 10.4, the deployment
 
341
      # target defaults to 10.4. Don't you love it?
 
342
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
343
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
344
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
345
   10.[[012]]*)
 
346
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
347
   10.*)
 
348
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
349
      esac
 
350
    ;;
 
351
  esac
 
352
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
353
      _lt_dar_single_mod='$single_module'
 
354
    fi
 
355
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
356
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
357
    else
 
358
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
359
    fi
 
360
    if test "$DSYMUTIL" != ":"; then
 
361
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
362
    else
 
363
      _lt_dsymutil=
 
364
    fi
 
365
    ;;
 
366
  esac
 
367
])
296
368
 
297
369
# _LT_AC_SYS_LIBPATH_AIX
298
370
# ----------------------
573
645
      esac
574
646
      ;;
575
647
    *64-bit*)
576
 
      libsuff=64
577
648
      case $host in
578
649
        x86_64-*kfreebsd*-gnu)
579
650
          LD="${LD-ld} -m elf_x86_64_fbsd"
618
689
    *64-bit*)
619
690
      case $lt_cv_prog_gnu_ld in
620
691
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
621
 
      *)    LD="${LD-ld} -64" ;;
 
692
      *)
 
693
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
694
          LD="${LD-ld} -64"
 
695
        fi
 
696
        ;;
622
697
      esac
623
698
      ;;
624
699
    esac
711
786
       $2=yes
712
787
     fi
713
788
   fi
714
 
   $rm conftest*
 
789
   $rm -r conftest*
715
790
   LDFLAGS="$save_LDFLAGS"
716
791
])
717
792
 
982
1057
    AC_CHECK_FUNC([shl_load],
983
1058
          [lt_cv_dlopen="shl_load"],
984
1059
      [AC_CHECK_LIB([dld], [shl_load],
985
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1060
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
986
1061
        [AC_CHECK_FUNC([dlopen],
987
1062
              [lt_cv_dlopen="dlopen"],
988
1063
          [AC_CHECK_LIB([dl], [dlopen],
990
1065
            [AC_CHECK_LIB([svld], [dlopen],
991
1066
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
992
1067
              [AC_CHECK_LIB([dld], [dld_link],
993
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1068
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
994
1069
              ])
995
1070
            ])
996
1071
          ])
1307
1382
  soname_spec='${libname}${release}${shared_ext}$major'
1308
1383
  ;;
1309
1384
 
1310
 
aix4* | aix5*)
 
1385
aix[[4-9]]*)
1311
1386
  version_type=linux
1312
1387
  need_lib_prefix=no
1313
1388
  need_version=no
1632
1707
  # Some rework will be needed to allow for fast_install
1633
1708
  # before this can be enabled.
1634
1709
  hardcode_into_libs=yes
1635
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1636
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1637
1710
 
1638
1711
  # Append ld.so.conf contents to the search path
1639
1712
  if test -f /etc/ld.so.conf; then
1640
1713
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1641
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
1714
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1642
1715
  fi
1643
1716
 
1644
1717
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1650
1723
  dynamic_linker='GNU/Linux ld.so'
1651
1724
  ;;
1652
1725
 
 
1726
netbsdelf*-gnu)
 
1727
  version_type=linux
 
1728
  need_lib_prefix=no
 
1729
  need_version=no
 
1730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1731
  soname_spec='${libname}${release}${shared_ext}$major'
 
1732
  shlibpath_var=LD_LIBRARY_PATH
 
1733
  shlibpath_overrides_runpath=no
 
1734
  hardcode_into_libs=yes
 
1735
  dynamic_linker='NetBSD ld.elf_so'
 
1736
  ;;
 
1737
 
1653
1738
netbsd*)
1654
1739
  version_type=sunos
1655
1740
  need_lib_prefix=no
1830
1915
AC_MSG_RESULT([$dynamic_linker])
1831
1916
test "$dynamic_linker" = no && can_build_shared=no
1832
1917
 
 
1918
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1919
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1920
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1921
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1922
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1923
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1924
 
1833
1925
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1834
1926
if test "$GCC" = yes; then
1835
1927
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2329
2421
# whether `pass_all' will *always* work, you probably want this one.
2330
2422
 
2331
2423
case $host_os in
2332
 
aix4* | aix5*)
 
2424
aix[[4-9]]*)
2333
2425
  lt_cv_deplibs_check_method=pass_all
2334
2426
  ;;
2335
2427
 
2424
2516
  lt_cv_deplibs_check_method=pass_all
2425
2517
  ;;
2426
2518
 
2427
 
netbsd*)
 
2519
netbsd* | netbsdelf*-gnu)
2428
2520
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2429
2521
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2430
2522
  else
2765
2857
  fi
2766
2858
  ;;
2767
2859
 
2768
 
aix4* | aix5*)
 
2860
aix[[4-9]]*)
2769
2861
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2770
2862
    test "$enable_shared" = yes && enable_static=no
2771
2863
  fi
2822
2914
_LT_AC_TAGVAR(predeps, $1)=
2823
2915
_LT_AC_TAGVAR(postdeps, $1)=
2824
2916
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2917
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2825
2918
 
2826
2919
# Source file extension for C++ test sources.
2827
2920
ac_ext=cpp
2931
3024
    # FIXME: insert proper C++ library support
2932
3025
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2933
3026
    ;;
2934
 
  aix4* | aix5*)
 
3027
  aix[[4-9]]*)
2935
3028
    if test "$host_cpu" = ia64; then
2936
3029
      # On IA64, the linker does run time linking by default, so we don't
2937
3030
      # have to do anything special.
2944
3037
      # Test if we are trying to use run time linking or normal
2945
3038
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2946
3039
      # need to do runtime linking.
2947
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3040
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2948
3041
        for ld_flag in $LDFLAGS; do
2949
3042
          case $ld_flag in
2950
3043
          *-brtl*)
3090
3183
    fi
3091
3184
  ;;
3092
3185
      darwin* | rhapsody*)
3093
 
        case $host_os in
3094
 
        rhapsody* | darwin1.[[012]])
3095
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3096
 
         ;;
3097
 
       *) # Darwin 1.3 on
3098
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3099
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3100
 
         else
3101
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3102
 
             10.[[012]])
3103
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3104
 
               ;;
3105
 
             10.*)
3106
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3107
 
               ;;
3108
 
           esac
3109
 
         fi
3110
 
         ;;
3111
 
        esac
3112
3186
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3113
3187
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3114
3188
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3115
3189
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3116
3190
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3117
3191
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3118
 
 
3119
 
    if test "$GXX" = yes ; then
3120
 
      lt_int_apple_cc_single_mod=no
 
3192
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3193
      if test "$GXX" = yes ; then
3121
3194
      output_verbose_link_cmd='echo'
3122
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3123
 
       lt_int_apple_cc_single_mod=yes
 
3195
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3196
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3197
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3198
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3199
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3200
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
3201
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3124
3202
      fi
3125
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3126
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3127
 
      else
3128
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3129
 
        fi
3130
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3131
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3132
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3133
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3134
 
          else
3135
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3136
 
          fi
3137
 
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3138
3203
      else
3139
3204
      case $cc_basename in
3140
3205
        xlc*)
3385
3450
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3386
3451
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3387
3452
        ;;
3388
 
      pgCC*)
 
3453
      pgCC* | pgcpp*)
3389
3454
        # Portland Group C++ compiler
3390
3455
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3391
3456
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3458
3523
        ;;
3459
3524
    esac
3460
3525
    ;;
3461
 
  netbsd*)
 
3526
  netbsd* | netbsdelf*-gnu)
3462
3527
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3463
3528
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3464
3529
      wlarc=
3820
3885
# compiler output when linking a shared library.
3821
3886
# Parse the compiler output and extract the necessary
3822
3887
# objects, libraries and library flags.
3823
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3888
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3889
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3824
3890
dnl we can't use the lt_simple_compile_test_code here,
3825
3891
dnl because it contains code intended for an executable,
3826
3892
dnl not a library.  It's possible we should let each
3945
4011
 
3946
4012
$rm -f confest.$objext
3947
4013
 
 
4014
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4015
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4016
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4017
fi
 
4018
 
3948
4019
# PORTME: override above test on systems where it is broken
3949
4020
ifelse([$1],[CXX],
3950
4021
[case $host_os in
4001
4072
  ;;
4002
4073
esac
4003
4074
])
4004
 
 
4005
4075
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4006
4076
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4007
4077
esac
4086
4156
    postinstall_cmds='$RANLIB $lib'
4087
4157
  fi
4088
4158
  ;;
4089
 
aix4* | aix5*)
 
4159
aix[[4-9]]*)
4090
4160
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4091
4161
    test "$enable_shared" = yes && enable_static=no
4092
4162
  fi
4263
4333
    _LT_AC_TAGVAR(predeps, $1) \
4264
4334
    _LT_AC_TAGVAR(postdeps, $1) \
4265
4335
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4336
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4266
4337
    _LT_AC_TAGVAR(archive_cmds, $1) \
4267
4338
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4268
4339
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4325
4396
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4326
4397
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4327
4398
#
4328
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
4399
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4329
4400
# Free Software Foundation, Inc.
4330
4401
#
4331
4402
# This file is part of GNU Libtool:
4562
4633
# shared library.
4563
4634
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4564
4635
 
 
4636
# The directories searched by this compiler when creating a shared
 
4637
# library
 
4638
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4639
 
4565
4640
# The library search path used internally by the compiler when linking
4566
4641
# a shared library.
4567
4642
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4911
4986
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4912
4987
    cat conftest.$ac_ext >&5
4913
4988
  fi
4914
 
  rm -f conftest* conftst*
 
4989
  rm -rf conftest* conftst*
4915
4990
 
4916
4991
  # Do not use the global_symbol_pipe unless it works.
4917
4992
  if test "$pipe_works" = yes; then
4968
5043
      # built for inclusion in a dll (and should export symbols for example).
4969
5044
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4970
5045
      # (--disable-auto-import) libraries
4971
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5046
      m4_if([$1], [GCJ], [],
 
5047
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4972
5048
      ;;
4973
5049
    darwin* | rhapsody*)
4974
5050
      # PIC is the default on this platform
5005
5081
    esac
5006
5082
  else
5007
5083
    case $host_os in
5008
 
      aix4* | aix5*)
 
5084
      aix[[4-9]]*)
5009
5085
        # All AIX code is PIC.
5010
5086
        if test "$host_cpu" = ia64; then
5011
5087
          # AIX 5 now supports IA64 processor
5101
5177
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5102
5178
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5103
5179
            ;;
5104
 
          pgCC*)
 
5180
          pgCC* | pgcpp*)
5105
5181
            # Portland Group C++ compiler.
5106
5182
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107
5183
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5139
5215
            ;;
5140
5216
        esac
5141
5217
        ;;
5142
 
      netbsd*)
 
5218
      netbsd* | netbsdelf*-gnu)
5143
5219
        ;;
5144
5220
      osf3* | osf4* | osf5*)
5145
5221
        case $cc_basename in
5252
5328
      # built for inclusion in a dll (and should export symbols for example).
5253
5329
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5254
5330
      # (--disable-auto-import) libraries
5255
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5331
      m4_if([$1], [GCJ], [],
 
5332
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5256
5333
      ;;
5257
5334
 
5258
5335
    darwin* | rhapsody*)
5322
5399
    mingw* | cygwin* | pw32* | os2*)
5323
5400
      # This hack is so that the source file can tell whether it is being
5324
5401
      # built for inclusion in a dll (and should export symbols for example).
5325
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5402
      m4_if([$1], [GCJ], [],
 
5403
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5326
5404
      ;;
5327
5405
 
5328
5406
    hpux9* | hpux10* | hpux11*)
5459
5537
#
5460
5538
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5461
5539
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5462
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5540
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5463
5541
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5464
5542
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5465
5543
     "" | " "*) ;;
5483
5561
#
5484
5562
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5485
5563
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5486
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5564
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5487
5565
  $lt_tmp_static_flag,
5488
5566
  [],
5489
5567
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5499
5577
ifelse([$1],[CXX],[
5500
5578
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5501
5579
  case $host_os in
5502
 
  aix4* | aix5*)
 
5580
  aix[[4-9]]*)
5503
5581
    # If we're using GNU nm, then we don't want the "-C" option.
5504
5582
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5505
5583
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5514
5592
  cygwin* | mingw*)
5515
5593
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5516
5594
  ;;
 
5595
  linux* | k*bsd*-gnu)
 
5596
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5597
  ;;
5517
5598
  *)
5518
5599
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5519
5600
  ;;
5520
5601
  esac
 
5602
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5521
5603
],[
5522
5604
  runpath_var=
5523
5605
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5548
5630
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5549
5631
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5550
5632
  # as well as any symbol that contains `d'.
5551
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5633
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5552
5634
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5553
5635
  # platforms (ab)use it in PIC code, but their linkers get confused if
5554
5636
  # the symbol is explicitly referenced.  Since portable code cannot
5555
5637
  # rely on this symbol name, it's probably fine to never include it in
5556
5638
  # preloaded symbol tables.
 
5639
  # Exclude shared library initialization/finalization symbols.
 
5640
dnl Note also adjust exclude_expsyms for C++ above.
5557
5641
  extract_expsyms_cmds=
5558
5642
  # Just being paranoid about ensuring that cc_basename is set.
5559
5643
  _LT_CC_BASENAME([$compiler])
5603
5687
 
5604
5688
    # See if GNU ld supports shared libraries.
5605
5689
    case $host_os in
5606
 
    aix3* | aix4* | aix5*)
 
5690
    aix[[3-9]]*)
5607
5691
      # On AIX/PPC, the GNU linker is very broken
5608
5692
      if test "$host_cpu" != ia64; then
5609
5693
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5719
5803
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5720
5804
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5721
5805
        fi
 
5806
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5722
5807
      else
5723
5808
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5724
5809
      fi
5725
5810
      ;;
5726
5811
 
5727
 
    netbsd*)
 
5812
    netbsd* | netbsdelf*-gnu)
5728
5813
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5729
5814
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5730
5815
        wlarc=
5822
5907
      fi
5823
5908
      ;;
5824
5909
 
5825
 
    aix4* | aix5*)
 
5910
    aix[[4-9]]*)
5826
5911
      if test "$host_cpu" = ia64; then
5827
5912
        # On IA64, the linker does run time linking by default, so we don't
5828
5913
        # have to do anything special.
5842
5927
        # Test if we are trying to use run time linking or normal
5843
5928
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5844
5929
        # need to do runtime linking.
5845
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5930
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5846
5931
          for ld_flag in $LDFLAGS; do
5847
5932
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5848
5933
            aix_use_runtimelinking=yes
6002
6087
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6003
6088
    if test "$GCC" = yes ; then
6004
6089
        output_verbose_link_cmd='echo'
6005
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6006
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6007
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6008
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6009
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6090
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6091
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6092
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6093
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6010
6094
    else
6011
6095
      case $cc_basename in
6012
6096
        xlc*)
6156
6240
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6157
6241
      ;;
6158
6242
 
6159
 
    netbsd*)
 
6243
    netbsd* | netbsdelf*-gnu)
6160
6244
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6161
6245
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6162
6246
      else