~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2010-01-23 05:08:37 UTC
  • mfrom: (8.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100123050837-rh5465ophfkjpsn2
Tags: 2.0.5-3
* Fix replace/drop bogus and/or obsolete configure options:
  + Use --without-ssl-dir/--with-ssl-dir (not --with-openssl-dir/
    --without-openssl-dir). Closes: bug#565969, thanks to Fabian
    Greffrath.
  + Use --enable-tcp-wrappers (not --with-tcp-wrappers).
  + Use --disable-srvloc (not --disable-slp).
  + Drop --disable-logger (obsolete since 2.0.1).
  + Drop --with-mangling (apparently obsolete since 2.0 alpha 1).
  + Drop --with-nls-dir and --without-xfs (apparently obsolete).
* Autoreconfigure during build (since upstream does not enable
  maintainer-mode). Disable autotools-related patches. Build-depend on
  libtool, automake1.11 and autoconf. Closes: bug#559060, thanks to
  Cyril Brulebois and others.
* Add safety-check to fail build if accidentally linked against
  libssl. Thanks to Fabian Greffrath (see bug#565969).
* Disable atalkd by default, to not require supported network active
  at daemon start time. Closes: bug#565568, thanks to Kurt Roeckx.
  Add NEWS entry about the change.
* Build-depend on and enable hardening-includes.
* Fix adjust "See also" of manpages referring to afile or achfile.
* Set urgency=medium as earlier lack of explicit disabling openssl
  caused the package to violate licensing for some architectures, also
  affecting testing.

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.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
 
[m4_fatal([this file was generated for autoconf 2.61.
16
 
You have another version of autoconf.  If you want to use that,
17
 
you should regenerate the build system entirely.], [63])])
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
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.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
18
21
 
19
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20
23
 
21
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
24
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
22
25
 
23
26
 
24
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
106
109
AC_REQUIRE([AC_OBJEXT])dnl
107
110
AC_REQUIRE([AC_EXEEXT])dnl
108
111
dnl
109
 
 
110
112
AC_LIBTOOL_SYS_MAX_CMD_LEN
111
113
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
112
114
AC_LIBTOOL_OBJDIR
181
183
test -z "$ac_objext" && ac_objext=o
182
184
 
183
185
# Determine commands to create old-style static archives.
184
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
186
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
185
187
old_postinstall_cmds='chmod 644 $oldlib'
186
188
old_postuninstall_cmds=
187
189
 
208
210
  ;;
209
211
esac
210
212
 
 
213
_LT_REQUIRED_DARWIN_CHECKS
 
214
 
211
215
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
212
216
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
213
217
enable_win32_dll=yes, enable_win32_dll=no)
268
272
# Check for compiler boilerplate output or warnings with
269
273
# the simple compiler test code.
270
274
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
271
 
[ac_outfile=conftest.$ac_objext
272
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
275
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
276
ac_outfile=conftest.$ac_objext
 
277
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273
278
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
279
_lt_compiler_boilerplate=`cat conftest.err`
275
280
$rm conftest*
281
286
# Check for linker boilerplate output or warnings with
282
287
# the simple link test code.
283
288
AC_DEFUN([_LT_LINKER_BOILERPLATE],
284
 
[ac_outfile=conftest.$ac_objext
285
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
289
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
290
ac_outfile=conftest.$ac_objext
 
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
286
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
287
293
_lt_linker_boilerplate=`cat conftest.err`
288
 
$rm conftest*
 
294
$rm -r conftest*
289
295
])# _LT_LINKER_BOILERPLATE
290
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
])
291
368
 
292
369
# _LT_AC_SYS_LIBPATH_AIX
293
370
# ----------------------
298
375
# If we don't find anything, use the default library path according
299
376
# to the aix ld manual.
300
377
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
301
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
302
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
303
 
}'`
 
378
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
379
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
380
lt_aix_libpath_sed='
 
381
    /Import File Strings/,/^$/ {
 
382
        /^0/ {
 
383
            s/^0  *\(.*\)$/\1/
 
384
            p
 
385
        }
 
386
    }'
 
387
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
304
388
# Check for a 64-bit object if we didn't find anything.
305
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
306
 
}'`; fi],[])
 
389
if test -z "$aix_libpath"; then
 
390
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
391
fi],[])
307
392
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
308
393
])# _LT_AC_SYS_LIBPATH_AIX
309
394
 
534
619
  rm -rf conftest*
535
620
  ;;
536
621
 
537
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
622
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
623
s390*-*linux*|sparc*-*linux*)
538
624
  # Find out which ABI we are using.
539
625
  echo 'int i;' > conftest.$ac_ext
540
626
  if AC_TRY_EVAL(ac_compile); then
541
627
    case `/usr/bin/file conftest.o` in
542
628
    *32-bit*)
543
629
      case $host in
 
630
        x86_64-*kfreebsd*-gnu)
 
631
          LD="${LD-ld} -m elf_i386_fbsd"
 
632
          ;;
544
633
        x86_64-*linux*)
545
634
          LD="${LD-ld} -m elf_i386"
546
635
          ;;
557
646
      ;;
558
647
    *64-bit*)
559
648
      case $host in
 
649
        x86_64-*kfreebsd*-gnu)
 
650
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
651
          ;;
560
652
        x86_64-*linux*)
561
653
          LD="${LD-ld} -m elf_x86_64"
562
654
          ;;
597
689
    *64-bit*)
598
690
      case $lt_cv_prog_gnu_ld in
599
691
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
600
 
      *)    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
        ;;
601
697
      esac
602
698
      ;;
603
699
    esac
628
724
AC_CACHE_CHECK([$1], [$2],
629
725
  [$2=no
630
726
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
631
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
727
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
632
728
   lt_compiler_flag="$3"
633
729
   # Insert the option either (1) after the last *FLAGS variable, or
634
730
   # (2) before a word containing "conftest.", or (3) at the end.
669
765
# ------------------------------------------------------------
670
766
# Check whether the given compiler option works
671
767
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
672
 
[AC_CACHE_CHECK([$1], [$2],
 
768
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
769
AC_CACHE_CHECK([$1], [$2],
673
770
  [$2=no
674
771
   save_LDFLAGS="$LDFLAGS"
675
772
   LDFLAGS="$LDFLAGS $3"
676
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
773
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
677
774
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
678
775
     # The linker can only warn and ignore the option if not recognized
679
776
     # So say no if there are warnings
689
786
       $2=yes
690
787
     fi
691
788
   fi
692
 
   $rm conftest*
 
789
   $rm -r conftest*
693
790
   LDFLAGS="$save_LDFLAGS"
694
791
])
695
792
 
787
884
    fi
788
885
    ;;
789
886
  *)
790
 
    # If test is not a shell built-in, we'll probably end up computing a
791
 
    # maximum length that is only half of the actual maximum length, but
792
 
    # we can't tell.
793
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
794
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
887
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
888
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
889
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
890
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
891
    else
 
892
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
893
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
795
894
               = "XX$teststring") >/dev/null 2>&1 &&
796
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
797
 
            lt_cv_sys_max_cmd_len=$new_result &&
798
 
            test $i != 17 # 1/2 MB should be enough
799
 
    do
800
 
      i=`expr $i + 1`
801
 
      teststring=$teststring$teststring
802
 
    done
803
 
    teststring=
804
 
    # Add a significant safety factor because C++ compilers can tack on massive
805
 
    # amounts of additional arguments before passing them to the linker.
806
 
    # It appears as though 1/2 is a usable value.
807
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
895
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
896
              lt_cv_sys_max_cmd_len=$new_result &&
 
897
              test $i != 17 # 1/2 MB should be enough
 
898
      do
 
899
        i=`expr $i + 1`
 
900
        teststring=$teststring$teststring
 
901
      done
 
902
      teststring=
 
903
      # Add a significant safety factor because C++ compilers can tack on massive
 
904
      # amounts of additional arguments before passing them to the linker.
 
905
      # It appears as though 1/2 is a usable value.
 
906
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
907
    fi
808
908
    ;;
809
909
  esac
810
910
])
957
1057
    AC_CHECK_FUNC([shl_load],
958
1058
          [lt_cv_dlopen="shl_load"],
959
1059
      [AC_CHECK_LIB([dld], [shl_load],
960
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1060
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
961
1061
        [AC_CHECK_FUNC([dlopen],
962
1062
              [lt_cv_dlopen="dlopen"],
963
1063
          [AC_CHECK_LIB([dl], [dlopen],
965
1065
            [AC_CHECK_LIB([svld], [dlopen],
966
1066
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
967
1067
              [AC_CHECK_LIB([dld], [dld_link],
968
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1068
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
969
1069
              ])
970
1070
            ])
971
1071
          ])
1031
1131
# ---------------------------------
1032
1132
# Check to see if options -c and -o are simultaneously supported by compiler
1033
1133
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1034
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1134
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1135
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1035
1136
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1036
1137
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1037
1138
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1039
1140
   mkdir conftest
1040
1141
   cd conftest
1041
1142
   mkdir out
1042
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1143
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1043
1144
 
1044
1145
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1045
1146
   # Insert the option either (1) after the last *FLAGS variable, or
1179
1280
   darwin*)
1180
1281
       if test -n "$STRIP" ; then
1181
1282
         striplib="$STRIP -x"
 
1283
         old_striplib="$STRIP -S"
1182
1284
         AC_MSG_RESULT([yes])
1183
1285
       else
1184
1286
  AC_MSG_RESULT([no])
1196
1298
# -----------------------------
1197
1299
# PORTME Fill in your ld.so characteristics
1198
1300
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1199
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1301
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1302
AC_MSG_CHECKING([dynamic linker characteristics])
1200
1303
library_names_spec=
1201
1304
libname_spec='lib$name'
1202
1305
soname_spec=
1210
1313
version_type=none
1211
1314
dynamic_linker="$host_os ld.so"
1212
1315
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1316
m4_if($1,[],[
1213
1317
if test "$GCC" = yes; then
1214
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1215
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1318
  case $host_os in
 
1319
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1320
    *) lt_awk_arg="/^libraries:/" ;;
 
1321
  esac
 
1322
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1323
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1216
1324
    # if the path contains ";" then we assume it to be the separator
1217
1325
    # otherwise default to the standard path separator (i.e. ":") - it is
1218
1326
    # assumed that no part of a normal pathname contains ";" but that should
1219
1327
    # okay in the real world where ";" in dirpaths is itself problematic.
1220
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1328
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1221
1329
  else
1222
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1330
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1223
1331
  fi
 
1332
  # Ok, now we have the path, separated by spaces, we can step through it
 
1333
  # and add multilib dir if necessary.
 
1334
  lt_tmp_lt_search_path_spec=
 
1335
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1336
  for lt_sys_path in $lt_search_path_spec; do
 
1337
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1338
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1339
    else
 
1340
      test -d "$lt_sys_path" && \
 
1341
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1342
    fi
 
1343
  done
 
1344
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1345
BEGIN {RS=" "; FS="/|\n";} {
 
1346
  lt_foo="";
 
1347
  lt_count=0;
 
1348
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1349
    if ($lt_i != "" && $lt_i != ".") {
 
1350
      if ($lt_i == "..") {
 
1351
        lt_count++;
 
1352
      } else {
 
1353
        if (lt_count == 0) {
 
1354
          lt_foo="/" $lt_i lt_foo;
 
1355
        } else {
 
1356
          lt_count--;
 
1357
        }
 
1358
      }
 
1359
    }
 
1360
  }
 
1361
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1362
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1363
}'`
 
1364
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1224
1365
else
1225
1366
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1226
 
fi
 
1367
fi])
1227
1368
need_lib_prefix=unknown
1228
1369
hardcode_into_libs=no
1229
1370
 
1241
1382
  soname_spec='${libname}${release}${shared_ext}$major'
1242
1383
  ;;
1243
1384
 
1244
 
aix4* | aix5*)
 
1385
aix[[4-9]]*)
1245
1386
  version_type=linux
1246
1387
  need_lib_prefix=no
1247
1388
  need_version=no
1380
1521
  shlibpath_overrides_runpath=yes
1381
1522
  shlibpath_var=DYLD_LIBRARY_PATH
1382
1523
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1383
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1384
 
  if test "$GCC" = yes; then
1385
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1386
 
  else
1387
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1388
 
  fi
 
1524
  m4_if([$1], [],[
 
1525
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1389
1526
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1390
1527
  ;;
1391
1528
 
1439
1576
    shlibpath_overrides_runpath=no
1440
1577
    hardcode_into_libs=yes
1441
1578
    ;;
1442
 
  freebsd*) # from 4.6 on
 
1579
  *) # from 4.6 on, and DragonFly
1443
1580
    shlibpath_overrides_runpath=yes
1444
1581
    hardcode_into_libs=yes
1445
1582
    ;;
1502
1639
  postinstall_cmds='chmod 555 $lib'
1503
1640
  ;;
1504
1641
 
1505
 
interix3*)
 
1642
interix[[3-9]]*)
1506
1643
  version_type=linux
1507
1644
  need_lib_prefix=no
1508
1645
  need_version=no
1573
1710
 
1574
1711
  # Append ld.so.conf contents to the search path
1575
1712
  if test -f /etc/ld.so.conf; then
1576
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
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' ' '`
1577
1714
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1578
1715
  fi
1579
1716
 
1679
1816
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1680
1817
  ;;
1681
1818
 
 
1819
rdos*)
 
1820
  dynamic_linker=no
 
1821
  ;;
 
1822
 
1682
1823
solaris*)
1683
1824
  version_type=linux
1684
1825
  need_lib_prefix=no
1774
1915
AC_MSG_RESULT([$dynamic_linker])
1775
1916
test "$dynamic_linker" = no && can_build_shared=no
1776
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
 
1777
1925
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1778
1926
if test "$GCC" = yes; then
1779
1927
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1784
1932
# _LT_AC_TAGCONFIG
1785
1933
# ----------------
1786
1934
AC_DEFUN([_LT_AC_TAGCONFIG],
1787
 
[AC_ARG_WITH([tags],
 
1935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1936
AC_ARG_WITH([tags],
1788
1937
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1789
1938
        [include additional configurations @<:@automatic@:>@])],
1790
1939
    [tagnames="$withval"])
2045
2194
 
2046
2195
# AC_PATH_TOOL_PREFIX
2047
2196
# -------------------
2048
 
# find a file program which can recognise shared library
 
2197
# find a file program which can recognize shared library
2049
2198
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2050
2199
[AC_REQUIRE([AC_PROG_EGREP])dnl
2051
2200
AC_MSG_CHECKING([for $1])
2108
2257
 
2109
2258
# AC_PATH_MAGIC
2110
2259
# -------------
2111
 
# find a file program which can recognise a shared library
 
2260
# find a file program which can recognize a shared library
2112
2261
AC_DEFUN([AC_PATH_MAGIC],
2113
2262
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2114
2263
if test -z "$lt_cv_path_MAGIC_CMD"; then
2255
2404
# how to check for library dependencies
2256
2405
#  -- PORTME fill in with the dynamic library characteristics
2257
2406
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2258
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2407
[AC_CACHE_CHECK([how to recognize dependent libraries],
2259
2408
lt_cv_deplibs_check_method,
2260
2409
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2261
2410
lt_cv_file_magic_test_file=
2272
2421
# whether `pass_all' will *always* work, you probably want this one.
2273
2422
 
2274
2423
case $host_os in
2275
 
aix4* | aix5*)
 
2424
aix[[4-9]]*)
2276
2425
  lt_cv_deplibs_check_method=pass_all
2277
2426
  ;;
2278
2427
 
2294
2443
 
2295
2444
mingw* | pw32*)
2296
2445
  # Base MSYS/MinGW do not provide the 'file' command needed by
2297
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2298
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2299
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2446
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2447
  # unless we find 'file', for example because we are cross-compiling.
 
2448
  if ( file / ) >/dev/null 2>&1; then
 
2449
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2450
    lt_cv_file_magic_cmd='func_win32_libid'
 
2451
  else
 
2452
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2453
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2454
  fi
2300
2455
  ;;
2301
2456
 
2302
2457
darwin* | rhapsody*)
2341
2496
  esac
2342
2497
  ;;
2343
2498
 
2344
 
interix3*)
 
2499
interix[[3-9]]*)
2345
2500
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2346
2501
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2347
2502
  ;;
2391
2546
  lt_cv_deplibs_check_method=pass_all
2392
2547
  ;;
2393
2548
 
 
2549
rdos*)
 
2550
  lt_cv_deplibs_check_method=pass_all
 
2551
  ;;
 
2552
 
2394
2553
solaris*)
2395
2554
  lt_cv_deplibs_check_method=pass_all
2396
2555
  ;;
2443
2602
  lt_cv_path_NM="$NM"
2444
2603
else
2445
2604
  lt_nm_to_check="${ac_tool_prefix}nm"
2446
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2605
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2447
2606
    lt_nm_to_check="$lt_nm_to_check nm"
2448
2607
  fi
2449
2608
  for lt_tmp_nm in $lt_nm_to_check; do
2659
2818
_LT_AC_TAGVAR(objext, $1)=$objext
2660
2819
 
2661
2820
# Code to be used in simple compile tests
2662
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2821
lt_simple_compile_test_code="int some_variable = 0;"
2663
2822
 
2664
2823
# Code to be used in simple link tests
2665
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2824
lt_simple_link_test_code='int main(){return(0);}'
2666
2825
 
2667
2826
_LT_AC_SYS_COMPILER
2668
2827
 
2698
2857
  fi
2699
2858
  ;;
2700
2859
 
2701
 
aix4* | aix5*)
 
2860
aix[[4-9]]*)
2702
2861
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2703
2862
    test "$enable_shared" = yes && enable_static=no
2704
2863
  fi
2755
2914
_LT_AC_TAGVAR(predeps, $1)=
2756
2915
_LT_AC_TAGVAR(postdeps, $1)=
2757
2916
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2917
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2758
2918
 
2759
2919
# Source file extension for C++ test sources.
2760
2920
ac_ext=cpp
2764
2924
_LT_AC_TAGVAR(objext, $1)=$objext
2765
2925
 
2766
2926
# Code to be used in simple compile tests
2767
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2927
lt_simple_compile_test_code="int some_variable = 0;"
2768
2928
 
2769
2929
# Code to be used in simple link tests
2770
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2930
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2771
2931
 
2772
2932
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2773
2933
_LT_AC_SYS_COMPILER
2864
3024
    # FIXME: insert proper C++ library support
2865
3025
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2866
3026
    ;;
2867
 
  aix4* | aix5*)
 
3027
  aix[[4-9]]*)
2868
3028
    if test "$host_cpu" = ia64; then
2869
3029
      # On IA64, the linker does run time linking by default, so we don't
2870
3030
      # have to do anything special.
2877
3037
      # Test if we are trying to use run time linking or normal
2878
3038
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2879
3039
      # need to do runtime linking.
2880
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3040
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2881
3041
        for ld_flag in $LDFLAGS; do
2882
3042
          case $ld_flag in
2883
3043
          *-brtl*)
2913
3073
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2914
3074
        then
2915
3075
          # We have reworked collect2
2916
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3076
          :
2917
3077
        else
2918
3078
          # We have old collect2
2919
3079
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3023
3183
    fi
3024
3184
  ;;
3025
3185
      darwin* | rhapsody*)
3026
 
        case $host_os in
3027
 
        rhapsody* | darwin1.[[012]])
3028
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3029
 
         ;;
3030
 
       *) # Darwin 1.3 on
3031
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3032
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3033
 
         else
3034
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3035
 
             10.[[012]])
3036
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3037
 
               ;;
3038
 
             10.*)
3039
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3040
 
               ;;
3041
 
           esac
3042
 
         fi
3043
 
         ;;
3044
 
        esac
3045
3186
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3046
3187
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3047
3188
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3048
3189
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3049
3190
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3050
3191
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3051
 
 
3052
 
    if test "$GXX" = yes ; then
3053
 
      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
3054
3194
      output_verbose_link_cmd='echo'
3055
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3056
 
       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}"
3057
3202
      fi
3058
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3059
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3060
 
      else
3061
 
          _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'
3062
 
        fi
3063
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3064
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3065
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3066
 
            _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}'
3067
 
          else
3068
 
            _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}'
3069
 
          fi
3070
 
            _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}'
3071
3203
      else
3072
3204
      case $cc_basename in
3073
3205
        xlc*)
3074
3206
         output_verbose_link_cmd='echo'
3075
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3207
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3076
3208
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3077
3209
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3078
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3210
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3079
3211
          _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}'
3080
3212
          ;;
3081
3213
       *)
3158
3290
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3159
3291
 
3160
3292
      case $host_cpu in
3161
 
      hppa*64*|ia64*)
3162
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3163
 
        ;;
 
3293
      hppa*64*|ia64*) ;;
3164
3294
      *)
3165
3295
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3166
3296
        ;;
3228
3358
        ;;
3229
3359
    esac
3230
3360
    ;;
3231
 
  interix3*)
 
3361
  interix[[3-9]]*)
3232
3362
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3233
3363
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3234
3364
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3320
3450
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3321
3451
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3322
3452
        ;;
3323
 
      pgCC*)
 
3453
      pgCC* | pgcpp*)
3324
3454
        # Portland Group C++ compiler
3325
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'
3326
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'
3348
3478
        # dependencies.
3349
3479
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3350
3480
        ;;
 
3481
      *)
 
3482
        case `$CC -V 2>&1 | sed 5q` in
 
3483
        *Sun\ C*)
 
3484
          # Sun C++ 5.9
 
3485
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3486
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3487
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3488
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3489
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3490
 
 
3491
          # Not sure whether something based on
 
3492
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3493
          # would be better.
 
3494
          output_verbose_link_cmd='echo'
 
3495
 
 
3496
          # Archives containing C++ object files must be created using
 
3497
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3498
          # necessary to make sure instantiated templates are included
 
3499
          # in the archive.
 
3500
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3501
          ;;
 
3502
        esac
 
3503
        ;;
3351
3504
    esac
3352
3505
    ;;
3353
3506
  lynxos*)
3386
3539
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3387
3540
    ;;
3388
3541
  openbsd*)
3389
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3390
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3391
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3392
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3393
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3394
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3395
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3396
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3542
    if test -f /usr/libexec/ld.so; then
 
3543
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3544
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3545
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3546
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3547
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3548
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3549
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3550
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3551
      fi
 
3552
      output_verbose_link_cmd='echo'
 
3553
    else
 
3554
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3397
3555
    fi
3398
 
    output_verbose_link_cmd='echo'
3399
3556
    ;;
3400
3557
  osf3*)
3401
3558
    case $cc_basename in
3557
3714
        case $host_os in
3558
3715
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3559
3716
          *)
3560
 
            # The C++ compiler is used as linker so we must use $wl
3561
 
            # flag to pass the commands to the underlying system
3562
 
            # linker. We must also pass each convience library through
3563
 
            # to the system linker between allextract/defaultextract.
3564
 
            # The C++ compiler will combine linker options so we
3565
 
            # cannot just pass the convience library names through
3566
 
            # without $wl.
 
3717
            # The compiler driver will combine and reorder linker options,
 
3718
            # but understands `-z linker_flag'.
3567
3719
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3568
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3720
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3569
3721
            ;;
3570
3722
        esac
3571
3723
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3612
3764
          fi
3613
3765
 
3614
3766
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3767
          case $host_os in
 
3768
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3769
          *)
 
3770
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3771
            ;;
 
3772
          esac
3615
3773
        fi
3616
3774
        ;;
3617
3775
    esac
3727
3885
# compiler output when linking a shared library.
3728
3886
# Parse the compiler output and extract the necessary
3729
3887
# objects, libraries and library flags.
3730
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3888
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3889
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3731
3890
dnl we can't use the lt_simple_compile_test_code here,
3732
3891
dnl because it contains code intended for an executable,
3733
3892
dnl not a library.  It's possible we should let each
3852
4011
 
3853
4012
$rm -f confest.$objext
3854
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
 
3855
4019
# PORTME: override above test on systems where it is broken
3856
4020
ifelse([$1],[CXX],
3857
4021
[case $host_os in
3858
 
interix3*)
 
4022
interix[[3-9]]*)
3859
4023
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3860
4024
  # hack all around it, let's just trust "g++" to DTRT.
3861
4025
  _LT_AC_TAGVAR(predep_objects,$1)=
3863
4027
  _LT_AC_TAGVAR(postdeps,$1)=
3864
4028
  ;;
3865
4029
 
 
4030
linux*)
 
4031
  case `$CC -V 2>&1 | sed 5q` in
 
4032
  *Sun\ C*)
 
4033
    # Sun C++ 5.9
 
4034
    #
 
4035
    # The more standards-conforming stlport4 library is
 
4036
    # incompatible with the Cstd library. Avoid specifying
 
4037
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4038
    # -library=stlport4 depends on it.
 
4039
    case " $CXX $CXXFLAGS " in
 
4040
    *" -library=stlport4 "*)
 
4041
      solaris_use_stlport4=yes
 
4042
      ;;
 
4043
    esac
 
4044
    if test "$solaris_use_stlport4" != yes; then
 
4045
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4046
    fi
 
4047
    ;;
 
4048
  esac
 
4049
  ;;
 
4050
 
3866
4051
solaris*)
3867
4052
  case $cc_basename in
3868
4053
  CC*)
 
4054
    # The more standards-conforming stlport4 library is
 
4055
    # incompatible with the Cstd library. Avoid specifying
 
4056
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4057
    # -library=stlport4 depends on it.
 
4058
    case " $CXX $CXXFLAGS " in
 
4059
    *" -library=stlport4 "*)
 
4060
      solaris_use_stlport4=yes
 
4061
      ;;
 
4062
    esac
 
4063
 
3869
4064
    # Adding this requires a known-good setup of shared libraries for
3870
4065
    # Sun compiler versions before 5.6, else PIC objects from an old
3871
4066
    # archive will be linked into the output, leading to subtle bugs.
3872
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4067
    if test "$solaris_use_stlport4" != yes; then
 
4068
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4069
    fi
3873
4070
    ;;
3874
4071
  esac
3875
4072
  ;;
3876
4073
esac
3877
4074
])
3878
 
 
3879
4075
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3880
4076
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3881
4077
esac
3918
4114
_LT_AC_TAGVAR(objext, $1)=$objext
3919
4115
 
3920
4116
# Code to be used in simple compile tests
3921
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4117
lt_simple_compile_test_code="\
 
4118
      subroutine t
 
4119
      return
 
4120
      end
 
4121
"
3922
4122
 
3923
4123
# Code to be used in simple link tests
3924
 
lt_simple_link_test_code="      program t\n      end\n"
 
4124
lt_simple_link_test_code="\
 
4125
      program t
 
4126
      end
 
4127
"
3925
4128
 
3926
4129
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3927
4130
_LT_AC_SYS_COMPILER
3953
4156
    postinstall_cmds='$RANLIB $lib'
3954
4157
  fi
3955
4158
  ;;
3956
 
aix4* | aix5*)
 
4159
aix[[4-9]]*)
3957
4160
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3958
4161
    test "$enable_shared" = yes && enable_static=no
3959
4162
  fi
4000
4203
_LT_AC_TAGVAR(objext, $1)=$objext
4001
4204
 
4002
4205
# Code to be used in simple compile tests
4003
 
lt_simple_compile_test_code="class foo {}\n"
 
4206
lt_simple_compile_test_code="class foo {}"
4004
4207
 
4005
4208
# Code to be used in simple link tests
4006
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4209
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4007
4210
 
4008
4211
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4009
4212
_LT_AC_SYS_COMPILER
4056
4259
_LT_AC_TAGVAR(objext, $1)=$objext
4057
4260
 
4058
4261
# Code to be used in simple compile tests
4059
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4262
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4060
4263
 
4061
4264
# Code to be used in simple link tests
4062
4265
lt_simple_link_test_code="$lt_simple_compile_test_code"
4130
4333
    _LT_AC_TAGVAR(predeps, $1) \
4131
4334
    _LT_AC_TAGVAR(postdeps, $1) \
4132
4335
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4336
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4133
4337
    _LT_AC_TAGVAR(archive_cmds, $1) \
4134
4338
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4135
4339
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4145
4349
    _LT_AC_TAGVAR(module_cmds, $1) \
4146
4350
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4147
4351
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4352
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4148
4353
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4149
4354
    _LT_AC_TAGVAR(include_expsyms, $1); do
4150
4355
 
4191
4396
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4192
4397
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4193
4398
#
4194
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4399
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4195
4400
# Free Software Foundation, Inc.
4196
4401
#
4197
4402
# This file is part of GNU Libtool:
4428
4633
# shared library.
4429
4634
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4430
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
 
4431
4640
# The library search path used internally by the compiler when linking
4432
4641
# a shared library.
4433
4642
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4516
4725
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4517
4726
 
4518
4727
# Fix the shell variable \$srcfile for the compiler.
4519
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4728
fix_srcfile_path=$lt_fix_srcfile_path
4520
4729
 
4521
4730
# Set to yes if exported symbols are required.
4522
4731
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4599
4808
# ---------------------------------
4600
4809
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4601
4810
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4811
AC_REQUIRE([LT_AC_PROG_SED])
4602
4812
AC_REQUIRE([AC_PROG_NM])
4603
4813
AC_REQUIRE([AC_OBJEXT])
4604
4814
# Check for command to grab the raw symbol name followed by C symbol from nm.
4776
4986
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4777
4987
    cat conftest.$ac_ext >&5
4778
4988
  fi
4779
 
  rm -f conftest* conftst*
 
4989
  rm -rf conftest* conftst*
4780
4990
 
4781
4991
  # Do not use the global_symbol_pipe unless it works.
4782
4992
  if test "$pipe_works" = yes; then
4825
5035
      # like `-m68040'.
4826
5036
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4827
5037
      ;;
4828
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5038
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4829
5039
      # PIC is the default for these OSes.
4830
5040
      ;;
4831
 
    mingw* | os2* | pw32*)
 
5041
    mingw* | cygwin* | os2* | pw32*)
4832
5042
      # This hack is so that the source file can tell whether it is being
4833
5043
      # built for inclusion in a dll (and should export symbols for example).
4834
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5044
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5045
      # (--disable-auto-import) libraries
 
5046
      m4_if([$1], [GCJ], [],
 
5047
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4835
5048
      ;;
4836
5049
    darwin* | rhapsody*)
4837
5050
      # PIC is the default on this platform
4842
5055
      # DJGPP does not support shared libraries at all
4843
5056
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4844
5057
      ;;
4845
 
    interix3*)
 
5058
    interix[[3-9]]*)
4846
5059
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4847
5060
      # Instead, we relocate shared libraries at runtime.
4848
5061
      ;;
4868
5081
    esac
4869
5082
  else
4870
5083
    case $host_os in
4871
 
      aix4* | aix5*)
 
5084
      aix[[4-9]]*)
4872
5085
        # All AIX code is PIC.
4873
5086
        if test "$host_cpu" = ia64; then
4874
5087
          # AIX 5 now supports IA64 processor
4964
5177
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4965
5178
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4966
5179
            ;;
4967
 
          pgCC*)
 
5180
          pgCC* | pgcpp*)
4968
5181
            # Portland Group C++ compiler.
4969
5182
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4970
5183
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4978
5191
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4979
5192
            ;;
4980
5193
          *)
 
5194
            case `$CC -V 2>&1 | sed 5q` in
 
5195
            *Sun\ C*)
 
5196
              # Sun C++ 5.9
 
5197
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5198
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5199
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5200
              ;;
 
5201
            esac
4981
5202
            ;;
4982
5203
        esac
4983
5204
        ;;
5098
5319
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5099
5320
      ;;
5100
5321
 
5101
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5322
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5102
5323
      # PIC is the default for these OSes.
5103
5324
      ;;
5104
5325
 
5105
 
    mingw* | pw32* | os2*)
 
5326
    mingw* | cygwin* | pw32* | os2*)
5106
5327
      # This hack is so that the source file can tell whether it is being
5107
5328
      # built for inclusion in a dll (and should export symbols for example).
5108
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5329
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5330
      # (--disable-auto-import) libraries
 
5331
      m4_if([$1], [GCJ], [],
 
5332
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5109
5333
      ;;
5110
5334
 
5111
5335
    darwin* | rhapsody*)
5114
5338
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5115
5339
      ;;
5116
5340
 
5117
 
    interix3*)
 
5341
    interix[[3-9]]*)
5118
5342
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5119
5343
      # Instead, we relocate shared libraries at runtime.
5120
5344
      ;;
5172
5396
       esac
5173
5397
       ;;
5174
5398
 
5175
 
    mingw* | pw32* | os2*)
 
5399
    mingw* | cygwin* | pw32* | os2*)
5176
5400
      # This hack is so that the source file can tell whether it is being
5177
5401
      # built for inclusion in a dll (and should export symbols for example).
5178
 
      _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'])
5179
5404
      ;;
5180
5405
 
5181
5406
    hpux9* | hpux10* | hpux11*)
5224
5449
        # All Alpha code is PIC.
5225
5450
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5226
5451
        ;;
 
5452
      *)
 
5453
        case `$CC -V 2>&1 | sed 5q` in
 
5454
        *Sun\ C*)
 
5455
          # Sun C 5.9
 
5456
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5457
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5458
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5459
          ;;
 
5460
        *Sun\ F*)
 
5461
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5462
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5463
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5464
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5465
          ;;
 
5466
        esac
 
5467
        ;;
5227
5468
      esac
5228
5469
      ;;
5229
5470
 
5233
5474
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5234
5475
      ;;
5235
5476
 
 
5477
    rdos*)
 
5478
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5479
      ;;
 
5480
 
5236
5481
    solaris*)
5237
5482
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5238
5483
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5292
5537
#
5293
5538
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5294
5539
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5295
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5540
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5296
5541
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5297
5542
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5298
5543
     "" | " "*) ;;
5316
5561
#
5317
5562
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5318
5563
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5319
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5564
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5320
5565
  $lt_tmp_static_flag,
5321
5566
  [],
5322
5567
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5327
5572
# ------------------------------------
5328
5573
# See if the linker supports building shared libraries.
5329
5574
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5330
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5575
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5576
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5331
5577
ifelse([$1],[CXX],[
5332
5578
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5333
5579
  case $host_os in
5334
 
  aix4* | aix5*)
 
5580
  aix[[4-9]]*)
5335
5581
    # If we're using GNU nm, then we don't want the "-C" option.
5336
5582
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5337
5583
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5344
5590
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5345
5591
  ;;
5346
5592
  cygwin* | mingw*)
5347
 
    _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'
 
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'
5348
5594
  ;;
5349
5595
  linux* | k*bsd*-gnu)
5350
5596
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5353
5599
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5354
5600
  ;;
5355
5601
  esac
 
5602
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5356
5603
],[
5357
5604
  runpath_var=
5358
5605
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5383
5630
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5384
5631
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5385
5632
  # as well as any symbol that contains `d'.
5386
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5633
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5387
5634
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5388
5635
  # platforms (ab)use it in PIC code, but their linkers get confused if
5389
5636
  # the symbol is explicitly referenced.  Since portable code cannot
5390
5637
  # rely on this symbol name, it's probably fine to never include it in
5391
5638
  # preloaded symbol tables.
 
5639
  # Exclude shared library initialization/finalization symbols.
 
5640
dnl Note also adjust exclude_expsyms for C++ above.
5392
5641
  extract_expsyms_cmds=
5393
5642
  # Just being paranoid about ensuring that cc_basename is set.
5394
5643
  _LT_CC_BASENAME([$compiler])
5438
5687
 
5439
5688
    # See if GNU ld supports shared libraries.
5440
5689
    case $host_os in
5441
 
    aix3* | aix4* | aix5*)
 
5690
    aix[[3-9]]*)
5442
5691
      # On AIX/PPC, the GNU linker is very broken
5443
5692
      if test "$host_cpu" != ia64; then
5444
5693
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5486
5735
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5487
5736
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5488
5737
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5489
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5738
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5490
5739
 
5491
5740
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5492
5741
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5504
5753
      fi
5505
5754
      ;;
5506
5755
 
5507
 
    interix3*)
 
5756
    interix[[3-9]]*)
5508
5757
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5509
5758
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5510
5759
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5519
5768
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5520
5769
      ;;
5521
5770
 
5522
 
    linux* | k*bsd*-gnu)
 
5771
    gnu* | linux* | k*bsd*-gnu)
5523
5772
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5524
5773
        tmp_addflag=
5525
5774
        case $cc_basename,$host_cpu in
5537
5786
        ifc* | ifort*)                  # Intel Fortran compiler
5538
5787
          tmp_addflag=' -nofor_main' ;;
5539
5788
        esac
5540
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5789
        case `$CC -V 2>&1 | sed 5q` in
 
5790
        *Sun\ C*)                       # Sun C 5.9
 
5791
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5792
          tmp_sharedflag='-G' ;;
 
5793
        *Sun\ F*)                       # Sun Fortran 8.3
 
5794
          tmp_sharedflag='-G' ;;
 
5795
        *)
 
5796
          tmp_sharedflag='-shared' ;;
 
5797
        esac
 
5798
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5541
5799
 
5542
5800
        if test $supports_anon_versioning = yes; then
5543
5801
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5544
5802
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5545
5803
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5546
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5804
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5547
5805
        fi
5548
5806
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5549
5807
      else
5584
5842
 
5585
5843
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5586
5844
      case `$LD -v 2>&1` in
5587
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5845
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5588
5846
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5589
5847
        cat <<_LT_EOF 1>&2
5590
5848
 
5649
5907
      fi
5650
5908
      ;;
5651
5909
 
5652
 
    aix4* | aix5*)
 
5910
    aix[[4-9]]*)
5653
5911
      if test "$host_cpu" = ia64; then
5654
5912
        # On IA64, the linker does run time linking by default, so we don't
5655
5913
        # have to do anything special.
5669
5927
        # Test if we are trying to use run time linking or normal
5670
5928
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5671
5929
        # need to do runtime linking.
5672
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5930
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5673
5931
          for ld_flag in $LDFLAGS; do
5674
5932
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5675
5933
            aix_use_runtimelinking=yes
5703
5961
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5704
5962
          then
5705
5963
          # We have reworked collect2
5706
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5964
          :
5707
5965
          else
5708
5966
          # We have old collect2
5709
5967
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5796
6054
      # The linker will automatically build a .lib file if we build a DLL.
5797
6055
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5798
6056
      # FIXME: Should let the user specify the lib program.
5799
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6057
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5800
6058
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5801
6059
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5802
6060
      ;;
5829
6087
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5830
6088
    if test "$GCC" = yes ; then
5831
6089
        output_verbose_link_cmd='echo'
5832
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5833
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5834
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5835
 
      _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}'
5836
 
      _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}"
5837
6094
    else
5838
6095
      case $cc_basename in
5839
6096
        xlc*)
5840
6097
         output_verbose_link_cmd='echo'
5841
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6098
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5842
6099
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5843
6100
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5844
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6101
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5845
6102
          _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}'
5846
6103
          ;;
5847
6104
       *)
6003
6260
      ;;
6004
6261
 
6005
6262
    openbsd*)
6006
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6007
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6008
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6009
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6010
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6011
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6012
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6263
      if test -f /usr/libexec/ld.so; then
 
6264
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6265
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6266
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6267
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6268
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6269
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6270
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6271
        else
 
6272
          case $host_os in
 
6273
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6274
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6275
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6276
             ;;
 
6277
           *)
 
6278
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6279
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6280
             ;;
 
6281
          esac
 
6282
        fi
6013
6283
      else
6014
 
       case $host_os in
6015
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6016
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6017
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6018
 
           ;;
6019
 
         *)
6020
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6021
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6022
 
           ;;
6023
 
       esac
 
6284
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6024
6285
      fi
6025
6286
      ;;
6026
6287
 
6079
6340
      case $host_os in
6080
6341
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6081
6342
      *)
6082
 
        # The compiler driver will combine linker options so we
6083
 
        # cannot just pass the convience library names through
6084
 
        # without $wl, iff we do not link with $LD.
6085
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6343
        # The compiler driver will combine and reorder linker options,
 
6344
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6345
        # but is careful enough not to reorder.
6086
6346
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6087
 
        case $wlarc in
6088
 
        '')
6089
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6090
 
        *)
6091
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6092
 
        esac ;;
 
6347
        if test "$GCC" = yes; then
 
6348
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6349
        else
 
6350
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6351
        fi
 
6352
        ;;
6093
6353
      esac
6094
6354
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6095
6355
      ;;
6146
6406
      fi
6147
6407
      ;;
6148
6408
 
6149
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6409
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6150
6410
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6151
6411
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6152
6412
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6221
6481
      # to ld, don't add -lc before -lgcc.
6222
6482
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6223
6483
      $rm conftest*
6224
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6484
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6225
6485
 
6226
6486
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6227
6487
        soname=conftest
6324
6584
[AC_CHECK_TOOL(RC, windres, no)
6325
6585
])
6326
6586
 
 
6587
 
 
6588
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6589
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6590
 
 
6591
# _AS_TEST_PREPARE
 
6592
# ----------------
 
6593
m4_ifndef([_AS_TEST_PREPARE],
 
6594
[m4_defun([_AS_TEST_PREPARE],
 
6595
[if test -x / >/dev/null 2>&1; then
 
6596
  as_executable_p='test -x'
 
6597
else
 
6598
  as_executable_p='test -f'
 
6599
fi
 
6600
])])# _AS_TEST_PREPARE
 
6601
 
 
6602
# AS_EXECUTABLE_P
 
6603
# ---------------
 
6604
# Check whether a file is executable.
 
6605
m4_ifndef([AS_EXECUTABLE_P],
 
6606
[m4_defun([AS_EXECUTABLE_P],
 
6607
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6608
$as_executable_p $1[]dnl
 
6609
])])# AS_EXECUTABLE_P
 
6610
 
6327
6611
# NOTE: This macro has been submitted for inclusion into   #
6328
6612
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6329
6613
#  a released version of Autoconf we should remove this    #
6344
6628
  test -z "$as_dir" && as_dir=.
6345
6629
  for lt_ac_prog in sed gsed; do
6346
6630
    for ac_exec_ext in '' $ac_executable_extensions; do
6347
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6631
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6348
6632
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6349
6633
      fi
6350
6634
    done
6351
6635
  done
6352
6636
done
 
6637
IFS=$as_save_IFS
6353
6638
lt_ac_max=0
6354
6639
lt_ac_count=0
6355
6640
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6382
6667
done
6383
6668
])
6384
6669
SED=$lt_cv_path_SED
 
6670
AC_SUBST([SED])
6385
6671
AC_MSG_RESULT([$SED])
6386
6672
])
6387
6673
 
6388
6674
 
6389
 
# serial 7 AC_LIB_LTDL
 
6675
# serial 9 AC_LIB_LTDL
6390
6676
 
6391
6677
# AC_WITH_LTDL
6392
6678
# ------------
6500
6786
    # we want this `case' here to explicitly catch those versions.
6501
6787
    libltdl_cv_sys_dlopen_deplibs=unknown
6502
6788
    ;;
6503
 
  aix[[45]]*)
 
6789
  aix[[4-9]]*)
6504
6790
    libltdl_cv_sys_dlopen_deplibs=yes
6505
6791
    ;;
6506
6792
  darwin*)
6508
6794
    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
6509
6795
    libltdl_cv_sys_dlopen_deplibs=yes
6510
6796
    ;;
 
6797
  freebsd* | dragonfly*)
 
6798
    libltdl_cv_sys_dlopen_deplibs=yes
 
6799
    ;;
6511
6800
  gnu* | linux* | k*bsd*-gnu)
6512
6801
    # GNU and its variants, using gnu ld.so (Glibc)
6513
6802
    libltdl_cv_sys_dlopen_deplibs=yes
6801
7090
AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify])
6802
7091
])# AC_LTDL_FUNC_ARGZ
6803
7092
 
6804
 
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
7093
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6805
7094
#
6806
7095
# This file is free software; the Free Software Foundation
6807
7096
# gives unlimited permission to copy and/or distribute it,
6816
7105
[am__api_version='1.10'
6817
7106
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6818
7107
dnl require some minimum version.  Point them to the right macro.
6819
 
m4_if([$1], [1.10], [],
 
7108
m4_if([$1], [1.10.1], [],
6820
7109
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6821
7110
])
6822
7111
 
6832
7121
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6833
7122
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6834
7123
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6835
 
[AM_AUTOMAKE_VERSION([1.10])dnl
6836
 
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
7124
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
7125
m4_ifndef([AC_AUTOCONF_VERSION],
 
7126
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
7127
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6837
7128
 
6838
7129
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6839
7130
 
7105
7396
  # each Makefile.in and add a new line on top of each file to say so.
7106
7397
  # Grep'ing the whole file is not good either: AIX grep has a line
7107
7398
  # limit of 2048, but all sed's we know have understand at least 4000.
7108
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
7399
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7109
7400
    dirpart=`AS_DIRNAME("$mf")`
7110
7401
  else
7111
7402
    continue
7165
7456
# Do all the work for Automake.                             -*- Autoconf -*-
7166
7457
 
7167
7458
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7168
 
# 2005, 2006 Free Software Foundation, Inc.
 
7459
# 2005, 2006, 2008 Free Software Foundation, Inc.
7169
7460
#
7170
7461
# This file is free software; the Free Software Foundation
7171
7462
# gives unlimited permission to copy and/or distribute it,
7172
7463
# with or without modifications, as long as this notice is preserved.
7173
7464
 
7174
 
# serial 12
 
7465
# serial 13
7175
7466
 
7176
7467
# This macro actually does too much.  Some checks are only needed if
7177
7468
# your package does certain things.  But this isn't really a big deal.
7276
7567
# our stamp files there.
7277
7568
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7278
7569
[# Compute $1's index in $config_headers.
 
7570
_am_arg=$1
7279
7571
_am_stamp_count=1
7280
7572
for _am_header in $config_headers :; do
7281
7573
  case $_am_header in
7282
 
    $1 | $1:* )
 
7574
    $_am_arg | $_am_arg:* )
7283
7575
      break ;;
7284
7576
    * )
7285
7577
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7286
7578
  esac
7287
7579
done
7288
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7580
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7289
7581
 
7290
7582
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7291
7583
#
7557
7849
 
7558
7850
# _AM_SUBST_NOTMAKE(VARIABLE)
7559
7851
# ---------------------------
7560
 
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
7852
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
7561
7853
# This macro is traced by Automake.
7562
7854
AC_DEFUN([_AM_SUBST_NOTMAKE])
7563
7855