~ubuntu-branches/ubuntu/precise/net-snmp/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-26 01:27:00 UTC
  • mfrom: (1.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091126012700-pox7w0a5j2x305h9
Tags: 5.4.2.1~dfsg-3ubuntu1
* Merge from debian testing.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.
    (LP: #426813).
 * Dropped patches:
   - debian/patches/101-fix-ipalias.patch: Applied upstream.
   - debian/patches/99-fix-net-snmp-syslog.patch: Applied upstream.
   - debian/patches/99-fix-perl-counter-in-subagent.patch: Applied upstream.
   - ebian/patches/103-fix-ubuntu-lmsensors.patch: No longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
15
 
16
 
# serial 51 AC_PROG_LIBTOOL
 
16
# serial 52 AC_PROG_LIBTOOL
17
17
 
18
18
 
19
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
101
101
AC_REQUIRE([AC_OBJEXT])dnl
102
102
AC_REQUIRE([AC_EXEEXT])dnl
103
103
dnl
104
 
 
105
104
AC_LIBTOOL_SYS_MAX_CMD_LEN
106
105
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
107
106
AC_LIBTOOL_OBJDIR
203
202
  ;;
204
203
esac
205
204
 
 
205
_LT_REQUIRED_DARWIN_CHECKS
 
206
 
206
207
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
207
208
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
208
209
enable_win32_dll=yes, enable_win32_dll=no)
282
283
echo "$lt_simple_link_test_code" >conftest.$ac_ext
283
284
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
284
285
_lt_linker_boilerplate=`cat conftest.err`
285
 
$rm conftest*
 
286
$rm -r conftest*
286
287
])# _LT_LINKER_BOILERPLATE
287
288
 
 
289
# _LT_REQUIRED_DARWIN_CHECKS
 
290
# --------------------------
 
291
# Check for some things on darwin
 
292
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
293
  case $host_os in
 
294
    rhapsody* | darwin*)
 
295
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
296
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
297
 
 
298
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
299
      [lt_cv_apple_cc_single_mod=no
 
300
      if test -z "${LT_MULTI_MODULE}"; then
 
301
   # By default we will add the -single_module flag. You can override
 
302
   # by either setting the environment variable LT_MULTI_MODULE
 
303
   # non-empty at configure time, or by adding -multi_module to the
 
304
   # link flags.
 
305
   echo "int foo(void){return 1;}" > conftest.c
 
306
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
307
     -dynamiclib ${wl}-single_module conftest.c
 
308
   if test -f libconftest.dylib; then
 
309
     lt_cv_apple_cc_single_mod=yes
 
310
     rm -rf libconftest.dylib*
 
311
   fi
 
312
   rm conftest.c
 
313
      fi])
 
314
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
315
      [lt_cv_ld_exported_symbols_list],
 
316
      [lt_cv_ld_exported_symbols_list=no
 
317
      save_LDFLAGS=$LDFLAGS
 
318
      echo "_main" > conftest.sym
 
319
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
320
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
321
   [lt_cv_ld_exported_symbols_list=yes],
 
322
   [lt_cv_ld_exported_symbols_list=no])
 
323
   LDFLAGS="$save_LDFLAGS"
 
324
    ])
 
325
    case $host_os in
 
326
    rhapsody* | darwin1.[[0123]])
 
327
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
328
    darwin1.*)
 
329
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
330
    darwin*)
 
331
      # if running on 10.5 or later, the deployment target defaults
 
332
      # to the OS version, if on x86, and 10.4, the deployment
 
333
      # target defaults to 10.4. Don't you love it?
 
334
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
335
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
336
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
337
   10.[[012]]*)
 
338
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
339
   10.*)
 
340
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
341
      esac
 
342
    ;;
 
343
  esac
 
344
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
345
      _lt_dar_single_mod='$single_module'
 
346
    fi
 
347
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
348
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
349
    else
 
350
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
351
    fi
 
352
    if test "$DSYMUTIL" != ":"; then
 
353
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
354
    else
 
355
      _lt_dsymutil=
 
356
    fi
 
357
    ;;
 
358
  esac
 
359
])
288
360
 
289
361
# _LT_AC_SYS_LIBPATH_AIX
290
362
# ----------------------
609
681
    *64-bit*)
610
682
      case $lt_cv_prog_gnu_ld in
611
683
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
612
 
      *)    LD="${LD-ld} -64" ;;
 
684
      *)
 
685
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
686
          LD="${LD-ld} -64"
 
687
        fi
 
688
        ;;
613
689
      esac
614
690
      ;;
615
691
    esac
702
778
       $2=yes
703
779
     fi
704
780
   fi
705
 
   $rm conftest*
 
781
   $rm -r conftest*
706
782
   LDFLAGS="$save_LDFLAGS"
707
783
])
708
784
 
973
1049
    AC_CHECK_FUNC([shl_load],
974
1050
          [lt_cv_dlopen="shl_load"],
975
1051
      [AC_CHECK_LIB([dld], [shl_load],
976
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1052
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
977
1053
        [AC_CHECK_FUNC([dlopen],
978
1054
              [lt_cv_dlopen="dlopen"],
979
1055
          [AC_CHECK_LIB([dl], [dlopen],
981
1057
            [AC_CHECK_LIB([svld], [dlopen],
982
1058
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
983
1059
              [AC_CHECK_LIB([dld], [dld_link],
984
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1060
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
985
1061
              ])
986
1062
            ])
987
1063
          ])
1298
1374
  soname_spec='${libname}${release}${shared_ext}$major'
1299
1375
  ;;
1300
1376
 
1301
 
aix4* | aix5*)
 
1377
aix[[4-9]]*)
1302
1378
  version_type=linux
1303
1379
  need_lib_prefix=no
1304
1380
  need_version=no
1819
1895
AC_MSG_RESULT([$dynamic_linker])
1820
1896
test "$dynamic_linker" = no && can_build_shared=no
1821
1897
 
 
1898
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1899
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1900
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1901
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1902
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1903
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1904
 
1822
1905
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1823
1906
if test "$GCC" = yes; then
1824
1907
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2318
2401
# whether `pass_all' will *always* work, you probably want this one.
2319
2402
 
2320
2403
case $host_os in
2321
 
aix4* | aix5*)
 
2404
aix[[4-9]]*)
2322
2405
  lt_cv_deplibs_check_method=pass_all
2323
2406
  ;;
2324
2407
 
2754
2837
  fi
2755
2838
  ;;
2756
2839
 
2757
 
aix4* | aix5*)
 
2840
aix[[4-9]]*)
2758
2841
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2759
2842
    test "$enable_shared" = yes && enable_static=no
2760
2843
  fi
2811
2894
_LT_AC_TAGVAR(predeps, $1)=
2812
2895
_LT_AC_TAGVAR(postdeps, $1)=
2813
2896
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2897
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2814
2898
 
2815
2899
# Source file extension for C++ test sources.
2816
2900
ac_ext=cpp
2920
3004
    # FIXME: insert proper C++ library support
2921
3005
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2922
3006
    ;;
2923
 
  aix4* | aix5*)
 
3007
  aix[[4-9]]*)
2924
3008
    if test "$host_cpu" = ia64; then
2925
3009
      # On IA64, the linker does run time linking by default, so we don't
2926
3010
      # have to do anything special.
2933
3017
      # Test if we are trying to use run time linking or normal
2934
3018
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2935
3019
      # need to do runtime linking.
2936
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3020
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2937
3021
        for ld_flag in $LDFLAGS; do
2938
3022
          case $ld_flag in
2939
3023
          *-brtl*)
3079
3163
    fi
3080
3164
  ;;
3081
3165
      darwin* | rhapsody*)
3082
 
        case $host_os in
3083
 
        rhapsody* | darwin1.[[012]])
3084
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3085
 
         ;;
3086
 
       *) # Darwin 1.3 on
3087
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3088
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3089
 
         else
3090
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3091
 
             10.[[012]])
3092
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3093
 
               ;;
3094
 
             10.*)
3095
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3096
 
               ;;
3097
 
           esac
3098
 
         fi
3099
 
         ;;
3100
 
        esac
3101
3166
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3102
3167
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3103
3168
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3104
3169
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3105
3170
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3106
3171
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3107
 
 
3108
 
    if test "$GXX" = yes ; then
3109
 
      lt_int_apple_cc_single_mod=no
 
3172
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3173
      if test "$GXX" = yes ; then
3110
3174
      output_verbose_link_cmd='echo'
3111
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3112
 
       lt_int_apple_cc_single_mod=yes
 
3175
      _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}"
 
3176
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3177
      _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}"
 
3178
      _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}"
 
3179
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3180
        _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}"
 
3181
        _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}"
3113
3182
      fi
3114
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3115
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3116
 
      else
3117
 
          _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'
3118
 
        fi
3119
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3120
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3121
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3122
 
            _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}'
3123
 
          else
3124
 
            _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}'
3125
 
          fi
3126
 
            _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}'
3127
3183
      else
3128
3184
      case $cc_basename in
3129
3185
        xlc*)
3374
3430
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3375
3431
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3376
3432
        ;;
3377
 
      pgCC*)
 
3433
      pgCC* | pgcpp*)
3378
3434
        # Portland Group C++ compiler
3379
3435
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3380
3436
        _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'
3809
3865
# compiler output when linking a shared library.
3810
3866
# Parse the compiler output and extract the necessary
3811
3867
# objects, libraries and library flags.
3812
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3868
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3869
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3813
3870
dnl we can't use the lt_simple_compile_test_code here,
3814
3871
dnl because it contains code intended for an executable,
3815
3872
dnl not a library.  It's possible we should let each
3934
3991
 
3935
3992
$rm -f confest.$objext
3936
3993
 
 
3994
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
3995
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
3996
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
3997
fi
 
3998
 
3937
3999
# PORTME: override above test on systems where it is broken
3938
4000
ifelse([$1],[CXX],
3939
4001
[case $host_os in
3990
4052
  ;;
3991
4053
esac
3992
4054
])
3993
 
 
3994
4055
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3995
4056
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3996
4057
esac
4075
4136
    postinstall_cmds='$RANLIB $lib'
4076
4137
  fi
4077
4138
  ;;
4078
 
aix4* | aix5*)
 
4139
aix[[4-9]]*)
4079
4140
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4080
4141
    test "$enable_shared" = yes && enable_static=no
4081
4142
  fi
4252
4313
    _LT_AC_TAGVAR(predeps, $1) \
4253
4314
    _LT_AC_TAGVAR(postdeps, $1) \
4254
4315
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4316
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4255
4317
    _LT_AC_TAGVAR(archive_cmds, $1) \
4256
4318
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4257
4319
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4314
4376
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4315
4377
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4316
4378
#
4317
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
4379
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4318
4380
# Free Software Foundation, Inc.
4319
4381
#
4320
4382
# This file is part of GNU Libtool:
4551
4613
# shared library.
4552
4614
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4553
4615
 
 
4616
# The directories searched by this compiler when creating a shared
 
4617
# library
 
4618
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4619
 
4554
4620
# The library search path used internally by the compiler when linking
4555
4621
# a shared library.
4556
4622
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4900
4966
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4901
4967
    cat conftest.$ac_ext >&5
4902
4968
  fi
4903
 
  rm -f conftest* conftst*
 
4969
  rm -rf conftest* conftst*
4904
4970
 
4905
4971
  # Do not use the global_symbol_pipe unless it works.
4906
4972
  if test "$pipe_works" = yes; then
4957
5023
      # built for inclusion in a dll (and should export symbols for example).
4958
5024
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4959
5025
      # (--disable-auto-import) libraries
4960
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5026
      m4_if([$1], [GCJ], [],
 
5027
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4961
5028
      ;;
4962
5029
    darwin* | rhapsody*)
4963
5030
      # PIC is the default on this platform
4994
5061
    esac
4995
5062
  else
4996
5063
    case $host_os in
4997
 
      aix4* | aix5*)
 
5064
      aix[[4-9]]*)
4998
5065
        # All AIX code is PIC.
4999
5066
        if test "$host_cpu" = ia64; then
5000
5067
          # AIX 5 now supports IA64 processor
5090
5157
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5091
5158
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5092
5159
            ;;
5093
 
          pgCC*)
 
5160
          pgCC* | pgcpp*)
5094
5161
            # Portland Group C++ compiler.
5095
5162
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5096
5163
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5241
5308
      # built for inclusion in a dll (and should export symbols for example).
5242
5309
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5243
5310
      # (--disable-auto-import) libraries
5244
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5311
      m4_if([$1], [GCJ], [],
 
5312
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5245
5313
      ;;
5246
5314
 
5247
5315
    darwin* | rhapsody*)
5311
5379
    mingw* | cygwin* | pw32* | os2*)
5312
5380
      # This hack is so that the source file can tell whether it is being
5313
5381
      # built for inclusion in a dll (and should export symbols for example).
5314
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5382
      m4_if([$1], [GCJ], [],
 
5383
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5315
5384
      ;;
5316
5385
 
5317
5386
    hpux9* | hpux10* | hpux11*)
5448
5517
#
5449
5518
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5450
5519
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5451
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5520
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5452
5521
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5453
5522
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5454
5523
     "" | " "*) ;;
5472
5541
#
5473
5542
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5474
5543
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5475
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5544
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5476
5545
  $lt_tmp_static_flag,
5477
5546
  [],
5478
5547
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5488
5557
ifelse([$1],[CXX],[
5489
5558
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5490
5559
  case $host_os in
5491
 
  aix4* | aix5*)
 
5560
  aix[[4-9]]*)
5492
5561
    # If we're using GNU nm, then we don't want the "-C" option.
5493
5562
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5494
5563
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5507
5576
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5508
5577
  ;;
5509
5578
  esac
 
5579
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5510
5580
],[
5511
5581
  runpath_var=
5512
5582
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5537
5607
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5538
5608
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5539
5609
  # as well as any symbol that contains `d'.
5540
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5610
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5541
5611
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5542
5612
  # platforms (ab)use it in PIC code, but their linkers get confused if
5543
5613
  # the symbol is explicitly referenced.  Since portable code cannot
5544
5614
  # rely on this symbol name, it's probably fine to never include it in
5545
5615
  # preloaded symbol tables.
 
5616
  # Exclude shared library initialization/finalization symbols.
 
5617
dnl Note also adjust exclude_expsyms for C++ above.
5546
5618
  extract_expsyms_cmds=
5547
5619
  # Just being paranoid about ensuring that cc_basename is set.
5548
5620
  _LT_CC_BASENAME([$compiler])
5592
5664
 
5593
5665
    # See if GNU ld supports shared libraries.
5594
5666
    case $host_os in
5595
 
    aix3* | aix4* | aix5*)
 
5667
    aix[[3-9]]*)
5596
5668
      # On AIX/PPC, the GNU linker is very broken
5597
5669
      if test "$host_cpu" != ia64; then
5598
5670
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5811
5883
      fi
5812
5884
      ;;
5813
5885
 
5814
 
    aix4* | aix5*)
 
5886
    aix[[4-9]]*)
5815
5887
      if test "$host_cpu" = ia64; then
5816
5888
        # On IA64, the linker does run time linking by default, so we don't
5817
5889
        # have to do anything special.
5831
5903
        # Test if we are trying to use run time linking or normal
5832
5904
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5833
5905
        # need to do runtime linking.
5834
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5906
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5835
5907
          for ld_flag in $LDFLAGS; do
5836
5908
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5837
5909
            aix_use_runtimelinking=yes
5991
6063
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5992
6064
    if test "$GCC" = yes ; then
5993
6065
        output_verbose_link_cmd='echo'
5994
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5995
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5996
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5997
 
      _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}'
5998
 
      _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}'
 
6066
        _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}"
 
6067
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6068
        _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}"
 
6069
        _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}"
5999
6070
    else
6000
6071
      case $cc_basename in
6001
6072
        xlc*)