~ubuntu-branches/debian/wheezy/courier/wheezy

« back to all changes in this revision

Viewing changes to imap/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Hornburg (Racke)
  • Date: 2009-03-08 16:42:08 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090308164208-nlve2wtx9bbrulmd
Tags: 0.61.2-1
* New upstream release.
* Lintian:
  - fix chown in courier-webadmin postinst
  - removed courier-base preinst
  - added debhelper token to courier-mta.preinst
  - removed *.conffiles

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
 
16
m4_if(AC_AUTOCONF_VERSION, [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
22
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
23
 
24
 
# serial 51 AC_PROG_LIBTOOL
 
24
# serial 52 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
# ----------------------
618
690
    *64-bit*)
619
691
      case $lt_cv_prog_gnu_ld in
620
692
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
621
 
      *)    LD="${LD-ld} -64" ;;
 
693
      *)
 
694
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
695
          LD="${LD-ld} -64"
 
696
        fi
 
697
        ;;
622
698
      esac
623
699
      ;;
624
700
    esac
711
787
       $2=yes
712
788
     fi
713
789
   fi
714
 
   $rm conftest*
 
790
   $rm -r conftest*
715
791
   LDFLAGS="$save_LDFLAGS"
716
792
])
717
793
 
982
1058
    AC_CHECK_FUNC([shl_load],
983
1059
          [lt_cv_dlopen="shl_load"],
984
1060
      [AC_CHECK_LIB([dld], [shl_load],
985
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1061
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
986
1062
        [AC_CHECK_FUNC([dlopen],
987
1063
              [lt_cv_dlopen="dlopen"],
988
1064
          [AC_CHECK_LIB([dl], [dlopen],
990
1066
            [AC_CHECK_LIB([svld], [dlopen],
991
1067
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
992
1068
              [AC_CHECK_LIB([dld], [dld_link],
993
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1069
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
994
1070
              ])
995
1071
            ])
996
1072
          ])
1307
1383
  soname_spec='${libname}${release}${shared_ext}$major'
1308
1384
  ;;
1309
1385
 
1310
 
aix4* | aix5*)
 
1386
aix[[4-9]]*)
1311
1387
  version_type=linux
1312
1388
  need_lib_prefix=no
1313
1389
  need_version=no
1830
1906
AC_MSG_RESULT([$dynamic_linker])
1831
1907
test "$dynamic_linker" = no && can_build_shared=no
1832
1908
 
 
1909
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1910
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1911
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1912
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1913
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1914
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1915
 
1833
1916
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1834
1917
if test "$GCC" = yes; then
1835
1918
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2329
2412
# whether `pass_all' will *always* work, you probably want this one.
2330
2413
 
2331
2414
case $host_os in
2332
 
aix4* | aix5*)
 
2415
aix[[4-9]]*)
2333
2416
  lt_cv_deplibs_check_method=pass_all
2334
2417
  ;;
2335
2418
 
2765
2848
  fi
2766
2849
  ;;
2767
2850
 
2768
 
aix4* | aix5*)
 
2851
aix[[4-9]]*)
2769
2852
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2770
2853
    test "$enable_shared" = yes && enable_static=no
2771
2854
  fi
2822
2905
_LT_AC_TAGVAR(predeps, $1)=
2823
2906
_LT_AC_TAGVAR(postdeps, $1)=
2824
2907
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2908
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2825
2909
 
2826
2910
# Source file extension for C++ test sources.
2827
2911
ac_ext=cpp
2931
3015
    # FIXME: insert proper C++ library support
2932
3016
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2933
3017
    ;;
2934
 
  aix4* | aix5*)
 
3018
  aix[[4-9]]*)
2935
3019
    if test "$host_cpu" = ia64; then
2936
3020
      # On IA64, the linker does run time linking by default, so we don't
2937
3021
      # have to do anything special.
2944
3028
      # Test if we are trying to use run time linking or normal
2945
3029
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2946
3030
      # need to do runtime linking.
2947
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3031
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2948
3032
        for ld_flag in $LDFLAGS; do
2949
3033
          case $ld_flag in
2950
3034
          *-brtl*)
3090
3174
    fi
3091
3175
  ;;
3092
3176
      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
3177
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3113
3178
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3114
3179
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3115
3180
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3116
3181
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3117
3182
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3118
 
 
3119
 
    if test "$GXX" = yes ; then
3120
 
      lt_int_apple_cc_single_mod=no
 
3183
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3184
      if test "$GXX" = yes ; then
3121
3185
      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
 
3186
      _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}"
 
3187
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3188
      _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}"
 
3189
      _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}"
 
3190
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3191
        _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}"
 
3192
        _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
3193
      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
3194
      else
3139
3195
      case $cc_basename in
3140
3196
        xlc*)
3385
3441
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3386
3442
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3387
3443
        ;;
3388
 
      pgCC*)
 
3444
      pgCC* | pgcpp*)
3389
3445
        # Portland Group C++ compiler
3390
3446
        _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
3447
        _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'
3820
3876
# compiler output when linking a shared library.
3821
3877
# Parse the compiler output and extract the necessary
3822
3878
# objects, libraries and library flags.
3823
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3879
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3880
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3824
3881
dnl we can't use the lt_simple_compile_test_code here,
3825
3882
dnl because it contains code intended for an executable,
3826
3883
dnl not a library.  It's possible we should let each
3945
4002
 
3946
4003
$rm -f confest.$objext
3947
4004
 
 
4005
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4006
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4007
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4008
fi
 
4009
 
3948
4010
# PORTME: override above test on systems where it is broken
3949
4011
ifelse([$1],[CXX],
3950
4012
[case $host_os in
4001
4063
  ;;
4002
4064
esac
4003
4065
])
4004
 
 
4005
4066
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4006
4067
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4007
4068
esac
4086
4147
    postinstall_cmds='$RANLIB $lib'
4087
4148
  fi
4088
4149
  ;;
4089
 
aix4* | aix5*)
 
4150
aix[[4-9]]*)
4090
4151
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4091
4152
    test "$enable_shared" = yes && enable_static=no
4092
4153
  fi
4263
4324
    _LT_AC_TAGVAR(predeps, $1) \
4264
4325
    _LT_AC_TAGVAR(postdeps, $1) \
4265
4326
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4327
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4266
4328
    _LT_AC_TAGVAR(archive_cmds, $1) \
4267
4329
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4268
4330
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4325
4387
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4326
4388
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4327
4389
#
4328
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
4390
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4329
4391
# Free Software Foundation, Inc.
4330
4392
#
4331
4393
# This file is part of GNU Libtool:
4562
4624
# shared library.
4563
4625
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4564
4626
 
 
4627
# The directories searched by this compiler when creating a shared
 
4628
# library
 
4629
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4630
 
4565
4631
# The library search path used internally by the compiler when linking
4566
4632
# a shared library.
4567
4633
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4911
4977
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4912
4978
    cat conftest.$ac_ext >&5
4913
4979
  fi
4914
 
  rm -f conftest* conftst*
 
4980
  rm -rf conftest* conftst*
4915
4981
 
4916
4982
  # Do not use the global_symbol_pipe unless it works.
4917
4983
  if test "$pipe_works" = yes; then
4968
5034
      # built for inclusion in a dll (and should export symbols for example).
4969
5035
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4970
5036
      # (--disable-auto-import) libraries
4971
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5037
      m4_if([$1], [GCJ], [],
 
5038
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4972
5039
      ;;
4973
5040
    darwin* | rhapsody*)
4974
5041
      # PIC is the default on this platform
5005
5072
    esac
5006
5073
  else
5007
5074
    case $host_os in
5008
 
      aix4* | aix5*)
 
5075
      aix[[4-9]]*)
5009
5076
        # All AIX code is PIC.
5010
5077
        if test "$host_cpu" = ia64; then
5011
5078
          # AIX 5 now supports IA64 processor
5101
5168
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5102
5169
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5103
5170
            ;;
5104
 
          pgCC*)
 
5171
          pgCC* | pgcpp*)
5105
5172
            # Portland Group C++ compiler.
5106
5173
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107
5174
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5252
5319
      # built for inclusion in a dll (and should export symbols for example).
5253
5320
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5254
5321
      # (--disable-auto-import) libraries
5255
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5322
      m4_if([$1], [GCJ], [],
 
5323
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5256
5324
      ;;
5257
5325
 
5258
5326
    darwin* | rhapsody*)
5322
5390
    mingw* | cygwin* | pw32* | os2*)
5323
5391
      # This hack is so that the source file can tell whether it is being
5324
5392
      # built for inclusion in a dll (and should export symbols for example).
5325
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5393
      m4_if([$1], [GCJ], [],
 
5394
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5326
5395
      ;;
5327
5396
 
5328
5397
    hpux9* | hpux10* | hpux11*)
5459
5528
#
5460
5529
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5461
5530
  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),
 
5531
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5463
5532
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5464
5533
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5465
5534
     "" | " "*) ;;
5483
5552
#
5484
5553
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5485
5554
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5486
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5555
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5487
5556
  $lt_tmp_static_flag,
5488
5557
  [],
5489
5558
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5499
5568
ifelse([$1],[CXX],[
5500
5569
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5501
5570
  case $host_os in
5502
 
  aix4* | aix5*)
 
5571
  aix[[4-9]]*)
5503
5572
    # If we're using GNU nm, then we don't want the "-C" option.
5504
5573
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5505
5574
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5518
5587
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5519
5588
  ;;
5520
5589
  esac
 
5590
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5521
5591
],[
5522
5592
  runpath_var=
5523
5593
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5548
5618
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5549
5619
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5550
5620
  # as well as any symbol that contains `d'.
5551
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5621
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5552
5622
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5553
5623
  # platforms (ab)use it in PIC code, but their linkers get confused if
5554
5624
  # the symbol is explicitly referenced.  Since portable code cannot
5555
5625
  # rely on this symbol name, it's probably fine to never include it in
5556
5626
  # preloaded symbol tables.
 
5627
  # Exclude shared library initialization/finalization symbols.
 
5628
dnl Note also adjust exclude_expsyms for C++ above.
5557
5629
  extract_expsyms_cmds=
5558
5630
  # Just being paranoid about ensuring that cc_basename is set.
5559
5631
  _LT_CC_BASENAME([$compiler])
5603
5675
 
5604
5676
    # See if GNU ld supports shared libraries.
5605
5677
    case $host_os in
5606
 
    aix3* | aix4* | aix5*)
 
5678
    aix[[3-9]]*)
5607
5679
      # On AIX/PPC, the GNU linker is very broken
5608
5680
      if test "$host_cpu" != ia64; then
5609
5681
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5822
5894
      fi
5823
5895
      ;;
5824
5896
 
5825
 
    aix4* | aix5*)
 
5897
    aix[[4-9]]*)
5826
5898
      if test "$host_cpu" = ia64; then
5827
5899
        # On IA64, the linker does run time linking by default, so we don't
5828
5900
        # have to do anything special.
5842
5914
        # Test if we are trying to use run time linking or normal
5843
5915
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5844
5916
        # need to do runtime linking.
5845
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5917
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5846
5918
          for ld_flag in $LDFLAGS; do
5847
5919
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5848
5920
            aix_use_runtimelinking=yes
6002
6074
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6003
6075
    if test "$GCC" = yes ; then
6004
6076
        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}'
 
6077
        _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}"
 
6078
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6079
        _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}"
 
6080
        _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
6081
    else
6011
6082
      case $cc_basename in
6012
6083
        xlc*)