~ubuntu-branches/ubuntu/quantal/tidy/quantal

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2008-12-24 13:25:54 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081224132554-l7900667kdy9eeu5
Tags: 20081224cvs-1
* New cvs snapshot
* debian/control: add debhelper ${misc:Depends} to all packages
- add versioned depend on libtidy-0.99-0 (>= 20081224cvs-1) for tidy
  (closes: #470764)
- add Homepage field
- update standards-version from 3.7.3.0 to 3.8.0.0
* debian/tidy-doc.doc-base: change section from App/Text to Web Development
* debian/tidy.postinst + tidy.preinst: set the -e flag
* debian/README.source: new, how to build source tarball from upstream
* debian/README.Debian: add urls to more documentation
  (closes: #353912)
* debian/patches/03overview-tab-size.patch: add patch to fix tab-size
  (closes: #353907)
* tidy doc has been built from same source as tidy for a while
  (closes: #364960)
* debian/rules:
  - add -xml-config to generated manpage
  - clean up generated files
  (closes: #471107)
* manpage: -latin0 options has correct info as of 20080116cvs-1
  (closes: #506394 )

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
15
 
16
 
# serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL
 
16
# serial 52 Debian 1.5.26-4 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
1831
1907
AC_MSG_RESULT([$dynamic_linker])
1832
1908
test "$dynamic_linker" = no && can_build_shared=no
1833
1909
 
 
1910
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1911
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1912
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1913
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1914
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1915
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1916
 
1834
1917
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1835
1918
if test "$GCC" = yes; then
1836
1919
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2330
2413
# whether `pass_all' will *always* work, you probably want this one.
2331
2414
 
2332
2415
case $host_os in
2333
 
aix4* | aix5*)
 
2416
aix[[4-9]]*)
2334
2417
  lt_cv_deplibs_check_method=pass_all
2335
2418
  ;;
2336
2419
 
2766
2849
  fi
2767
2850
  ;;
2768
2851
 
2769
 
aix4* | aix5*)
 
2852
aix[[4-9]]*)
2770
2853
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2771
2854
    test "$enable_shared" = yes && enable_static=no
2772
2855
  fi
2823
2906
_LT_AC_TAGVAR(predeps, $1)=
2824
2907
_LT_AC_TAGVAR(postdeps, $1)=
2825
2908
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2909
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2826
2910
 
2827
2911
# Source file extension for C++ test sources.
2828
2912
ac_ext=cpp
2932
3016
    # FIXME: insert proper C++ library support
2933
3017
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2934
3018
    ;;
2935
 
  aix4* | aix5*)
 
3019
  aix[[4-9]]*)
2936
3020
    if test "$host_cpu" = ia64; then
2937
3021
      # On IA64, the linker does run time linking by default, so we don't
2938
3022
      # have to do anything special.
2945
3029
      # Test if we are trying to use run time linking or normal
2946
3030
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2947
3031
      # need to do runtime linking.
2948
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3032
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2949
3033
        for ld_flag in $LDFLAGS; do
2950
3034
          case $ld_flag in
2951
3035
          *-brtl*)
3091
3175
    fi
3092
3176
  ;;
3093
3177
      darwin* | rhapsody*)
3094
 
        case $host_os in
3095
 
        rhapsody* | darwin1.[[012]])
3096
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3097
 
         ;;
3098
 
       *) # Darwin 1.3 on
3099
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3100
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3101
 
         else
3102
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3103
 
             10.[[012]])
3104
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3105
 
               ;;
3106
 
             10.*)
3107
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3108
 
               ;;
3109
 
           esac
3110
 
         fi
3111
 
         ;;
3112
 
        esac
3113
3178
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3114
3179
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3115
3180
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3116
3181
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3117
3182
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3118
3183
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3119
 
 
3120
 
    if test "$GXX" = yes ; then
3121
 
      lt_int_apple_cc_single_mod=no
 
3184
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3185
      if test "$GXX" = yes ; then
3122
3186
      output_verbose_link_cmd='echo'
3123
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3124
 
       lt_int_apple_cc_single_mod=yes
 
3187
      _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}"
 
3188
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3189
      _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}"
 
3190
      _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}"
 
3191
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3192
        _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}"
 
3193
        _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}"
3125
3194
      fi
3126
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3127
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3128
 
      else
3129
 
          _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'
3130
 
        fi
3131
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3132
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3133
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3134
 
            _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}'
3135
 
          else
3136
 
            _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}'
3137
 
          fi
3138
 
            _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}'
3139
3195
      else
3140
3196
      case $cc_basename in
3141
3197
        xlc*)
3386
3442
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3387
3443
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3388
3444
        ;;
3389
 
      pgCC*)
 
3445
      pgCC* | pgcpp*)
3390
3446
        # Portland Group C++ compiler
3391
3447
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3392
3448
        _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'
3821
3877
# compiler output when linking a shared library.
3822
3878
# Parse the compiler output and extract the necessary
3823
3879
# objects, libraries and library flags.
3824
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3880
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3881
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3825
3882
dnl we can't use the lt_simple_compile_test_code here,
3826
3883
dnl because it contains code intended for an executable,
3827
3884
dnl not a library.  It's possible we should let each
3946
4003
 
3947
4004
$rm -f confest.$objext
3948
4005
 
 
4006
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4007
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4008
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4009
fi
 
4010
 
3949
4011
# PORTME: override above test on systems where it is broken
3950
4012
ifelse([$1],[CXX],
3951
4013
[case $host_os in
4002
4064
  ;;
4003
4065
esac
4004
4066
])
4005
 
 
4006
4067
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4007
4068
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4008
4069
esac
4087
4148
    postinstall_cmds='$RANLIB $lib'
4088
4149
  fi
4089
4150
  ;;
4090
 
aix4* | aix5*)
 
4151
aix[[4-9]]*)
4091
4152
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4092
4153
    test "$enable_shared" = yes && enable_static=no
4093
4154
  fi
4264
4325
    _LT_AC_TAGVAR(predeps, $1) \
4265
4326
    _LT_AC_TAGVAR(postdeps, $1) \
4266
4327
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4328
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4267
4329
    _LT_AC_TAGVAR(archive_cmds, $1) \
4268
4330
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4269
4331
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4326
4388
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4327
4389
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4328
4390
#
4329
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
4391
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4330
4392
# Free Software Foundation, Inc.
4331
4393
#
4332
4394
# This file is part of GNU Libtool:
4563
4625
# shared library.
4564
4626
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4565
4627
 
 
4628
# The directories searched by this compiler when creating a shared
 
4629
# library
 
4630
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4631
 
4566
4632
# The library search path used internally by the compiler when linking
4567
4633
# a shared library.
4568
4634
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4912
4978
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4913
4979
    cat conftest.$ac_ext >&5
4914
4980
  fi
4915
 
  rm -f conftest* conftst*
 
4981
  rm -rf conftest* conftst*
4916
4982
 
4917
4983
  # Do not use the global_symbol_pipe unless it works.
4918
4984
  if test "$pipe_works" = yes; then
4969
5035
      # built for inclusion in a dll (and should export symbols for example).
4970
5036
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4971
5037
      # (--disable-auto-import) libraries
4972
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5038
      m4_if([$1], [GCJ], [],
 
5039
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4973
5040
      ;;
4974
5041
    darwin* | rhapsody*)
4975
5042
      # PIC is the default on this platform
5006
5073
    esac
5007
5074
  else
5008
5075
    case $host_os in
5009
 
      aix4* | aix5*)
 
5076
      aix[[4-9]]*)
5010
5077
        # All AIX code is PIC.
5011
5078
        if test "$host_cpu" = ia64; then
5012
5079
          # AIX 5 now supports IA64 processor
5102
5169
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5103
5170
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5104
5171
            ;;
5105
 
          pgCC*)
 
5172
          pgCC* | pgcpp*)
5106
5173
            # Portland Group C++ compiler.
5107
5174
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5108
5175
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5253
5320
      # built for inclusion in a dll (and should export symbols for example).
5254
5321
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5255
5322
      # (--disable-auto-import) libraries
5256
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5323
      m4_if([$1], [GCJ], [],
 
5324
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5257
5325
      ;;
5258
5326
 
5259
5327
    darwin* | rhapsody*)
5323
5391
    mingw* | cygwin* | pw32* | os2*)
5324
5392
      # This hack is so that the source file can tell whether it is being
5325
5393
      # built for inclusion in a dll (and should export symbols for example).
5326
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5394
      m4_if([$1], [GCJ], [],
 
5395
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5327
5396
      ;;
5328
5397
 
5329
5398
    hpux9* | hpux10* | hpux11*)
5460
5529
#
5461
5530
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5462
5531
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5463
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5532
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5464
5533
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5465
5534
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5466
5535
     "" | " "*) ;;
5484
5553
#
5485
5554
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5486
5555
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5487
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5556
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5488
5557
  $lt_tmp_static_flag,
5489
5558
  [],
5490
5559
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5500
5569
ifelse([$1],[CXX],[
5501
5570
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5502
5571
  case $host_os in
5503
 
  aix4* | aix5*)
 
5572
  aix[[4-9]]*)
5504
5573
    # If we're using GNU nm, then we don't want the "-C" option.
5505
5574
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5506
5575
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5522
5591
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5523
5592
  ;;
5524
5593
  esac
 
5594
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5525
5595
],[
5526
5596
  runpath_var=
5527
5597
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5552
5622
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5553
5623
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5554
5624
  # as well as any symbol that contains `d'.
5555
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5625
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5556
5626
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5557
5627
  # platforms (ab)use it in PIC code, but their linkers get confused if
5558
5628
  # the symbol is explicitly referenced.  Since portable code cannot
5559
5629
  # rely on this symbol name, it's probably fine to never include it in
5560
5630
  # preloaded symbol tables.
 
5631
  # Exclude shared library initialization/finalization symbols.
 
5632
dnl Note also adjust exclude_expsyms for C++ above.
5561
5633
  extract_expsyms_cmds=
5562
5634
  # Just being paranoid about ensuring that cc_basename is set.
5563
5635
  _LT_CC_BASENAME([$compiler])
5607
5679
 
5608
5680
    # See if GNU ld supports shared libraries.
5609
5681
    case $host_os in
5610
 
    aix3* | aix4* | aix5*)
 
5682
    aix[[3-9]]*)
5611
5683
      # On AIX/PPC, the GNU linker is very broken
5612
5684
      if test "$host_cpu" != ia64; then
5613
5685
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5827
5899
      fi
5828
5900
      ;;
5829
5901
 
5830
 
    aix4* | aix5*)
 
5902
    aix[[4-9]]*)
5831
5903
      if test "$host_cpu" = ia64; then
5832
5904
        # On IA64, the linker does run time linking by default, so we don't
5833
5905
        # have to do anything special.
5847
5919
        # Test if we are trying to use run time linking or normal
5848
5920
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5849
5921
        # need to do runtime linking.
5850
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5922
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5851
5923
          for ld_flag in $LDFLAGS; do
5852
5924
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5853
5925
            aix_use_runtimelinking=yes
6007
6079
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6008
6080
    if test "$GCC" = yes ; then
6009
6081
        output_verbose_link_cmd='echo'
6010
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6011
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6012
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6013
 
      _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}'
6014
 
      _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}'
 
6082
        _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}"
 
6083
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6084
        _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}"
 
6085
        _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}"
6015
6086
    else
6016
6087
      case $cc_basename in
6017
6088
        xlc*)