~ubuntu-branches/ubuntu/raring/wacom-tools/raring

« back to all changes in this revision

Viewing changes to linuxwacom/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-03-24 10:06:54 UTC
  • mfrom: (1.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090324100654-u7x4rd2ked2gpksz
Tags: 1:0.8.2.2-0ubuntu1
* New upstream release. (LP: #355340)
* Patch 100_allow_eraser.patch dropped, included in this version.
* 100_fedora-fix-build.diff
  - Make the driver to build against xserver 1.6.
* 101_fedora-fix-mapping.diff
  - No button 0 in the server, all offsets have to begin at 1.
* 102_fedora-wcmmaxx.diff
  - Don't assign priv->wcmMaxX/Y back into common->wcmMaxX/Y.
* 103_fedora-hal-setup.diff
  - Add a hal callout program to set up the device.
  (LP: #215689, #356091)
* 104_revert-check.diff
  - Don't check the serial number, it breaks some devices.
* Modify 10-wacom.fdi to include changes from Fedora. Should allow
  hotplugging (built-in) serial tablets. (LP: #337112)
* rules:
  - Run autoreconf on build
  - xserver-xorg-input-wacom includes /usr/lib/hal/hal-setup-wacom
* control:
  - autoreconf: add automake, libtool to build-deps.
  - hal-setup-wacom: add libhal-dev to build-deps.

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 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
 
16
# serial 48 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
 
104
105
AC_LIBTOOL_SYS_MAX_CMD_LEN
105
106
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
106
107
AC_LIBTOOL_OBJDIR
175
176
test -z "$ac_objext" && ac_objext=o
176
177
 
177
178
# Determine commands to create old-style static archives.
178
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
179
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
179
180
old_postinstall_cmds='chmod 644 $oldlib'
180
181
old_postuninstall_cmds=
181
182
 
202
203
  ;;
203
204
esac
204
205
 
205
 
_LT_REQUIRED_DARWIN_CHECKS
206
 
 
207
206
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
208
207
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
209
208
enable_win32_dll=yes, enable_win32_dll=no)
264
263
# Check for compiler boilerplate output or warnings with
265
264
# the simple compiler test code.
266
265
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
267
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
268
 
ac_outfile=conftest.$ac_objext
269
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
266
[ac_outfile=conftest.$ac_objext
 
267
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
270
268
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
271
269
_lt_compiler_boilerplate=`cat conftest.err`
272
270
$rm conftest*
278
276
# Check for linker boilerplate output or warnings with
279
277
# the simple link test code.
280
278
AC_DEFUN([_LT_LINKER_BOILERPLATE],
281
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
282
 
ac_outfile=conftest.$ac_objext
283
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
279
[ac_outfile=conftest.$ac_objext
 
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
284
281
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
285
282
_lt_linker_boilerplate=`cat conftest.err`
286
 
$rm -r conftest*
 
283
$rm conftest*
287
284
])# _LT_LINKER_BOILERPLATE
288
285
 
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
 
])
360
286
 
361
287
# _LT_AC_SYS_LIBPATH_AIX
362
288
# ----------------------
367
293
# If we don't find anything, use the default library path according
368
294
# to the aix ld manual.
369
295
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
370
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
371
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
372
 
lt_aix_libpath_sed='
373
 
    /Import File Strings/,/^$/ {
374
 
        /^0/ {
375
 
            s/^0  *\(.*\)$/\1/
376
 
            p
377
 
        }
378
 
    }'
379
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
296
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
297
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
298
}'`
380
299
# Check for a 64-bit object if we didn't find anything.
381
 
if test -z "$aix_libpath"; then
382
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
383
 
fi],[])
 
300
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; }
 
301
}'`; fi],[])
384
302
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
385
303
])# _LT_AC_SYS_LIBPATH_AIX
386
304
 
611
529
  rm -rf conftest*
612
530
  ;;
613
531
 
614
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
615
 
s390*-*linux*|sparc*-*linux*)
 
532
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
616
533
  # Find out which ABI we are using.
617
534
  echo 'int i;' > conftest.$ac_ext
618
535
  if AC_TRY_EVAL(ac_compile); then
619
536
    case `/usr/bin/file conftest.o` in
620
537
    *32-bit*)
621
538
      case $host in
622
 
        x86_64-*kfreebsd*-gnu)
623
 
          LD="${LD-ld} -m elf_i386_fbsd"
624
 
          ;;
625
539
        x86_64-*linux*)
626
540
          LD="${LD-ld} -m elf_i386"
627
541
          ;;
638
552
      ;;
639
553
    *64-bit*)
640
554
      case $host in
641
 
        x86_64-*kfreebsd*-gnu)
642
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
643
 
          ;;
644
555
        x86_64-*linux*)
645
556
          LD="${LD-ld} -m elf_x86_64"
646
557
          ;;
681
592
    *64-bit*)
682
593
      case $lt_cv_prog_gnu_ld in
683
594
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
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
 
        ;;
 
595
      *)    LD="${LD-ld} -64" ;;
689
596
      esac
690
597
      ;;
691
598
    esac
716
623
AC_CACHE_CHECK([$1], [$2],
717
624
  [$2=no
718
625
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
719
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
626
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
720
627
   lt_compiler_flag="$3"
721
628
   # Insert the option either (1) after the last *FLAGS variable, or
722
629
   # (2) before a word containing "conftest.", or (3) at the end.
757
664
# ------------------------------------------------------------
758
665
# Check whether the given compiler option works
759
666
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
760
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
761
 
AC_CACHE_CHECK([$1], [$2],
 
667
[AC_CACHE_CHECK([$1], [$2],
762
668
  [$2=no
763
669
   save_LDFLAGS="$LDFLAGS"
764
670
   LDFLAGS="$LDFLAGS $3"
765
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
671
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
766
672
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
767
673
     # The linker can only warn and ignore the option if not recognized
768
674
     # So say no if there are warnings
778
684
       $2=yes
779
685
     fi
780
686
   fi
781
 
   $rm -r conftest*
 
687
   $rm conftest*
782
688
   LDFLAGS="$save_LDFLAGS"
783
689
])
784
690
 
876
782
    fi
877
783
    ;;
878
784
  *)
879
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
880
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
881
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
882
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
883
 
    else
884
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
885
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
785
    # If test is not a shell built-in, we'll probably end up computing a
 
786
    # maximum length that is only half of the actual maximum length, but
 
787
    # we can't tell.
 
788
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
789
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
886
790
               = "XX$teststring") >/dev/null 2>&1 &&
887
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
888
 
              lt_cv_sys_max_cmd_len=$new_result &&
889
 
              test $i != 17 # 1/2 MB should be enough
890
 
      do
891
 
        i=`expr $i + 1`
892
 
        teststring=$teststring$teststring
893
 
      done
894
 
      teststring=
895
 
      # Add a significant safety factor because C++ compilers can tack on massive
896
 
      # amounts of additional arguments before passing them to the linker.
897
 
      # It appears as though 1/2 is a usable value.
898
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
899
 
    fi
 
791
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
792
            lt_cv_sys_max_cmd_len=$new_result &&
 
793
            test $i != 17 # 1/2 MB should be enough
 
794
    do
 
795
      i=`expr $i + 1`
 
796
      teststring=$teststring$teststring
 
797
    done
 
798
    teststring=
 
799
    # Add a significant safety factor because C++ compilers can tack on massive
 
800
    # amounts of additional arguments before passing them to the linker.
 
801
    # It appears as though 1/2 is a usable value.
 
802
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
900
803
    ;;
901
804
  esac
902
805
])
1049
952
    AC_CHECK_FUNC([shl_load],
1050
953
          [lt_cv_dlopen="shl_load"],
1051
954
      [AC_CHECK_LIB([dld], [shl_load],
1052
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
 
955
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1053
956
        [AC_CHECK_FUNC([dlopen],
1054
957
              [lt_cv_dlopen="dlopen"],
1055
958
          [AC_CHECK_LIB([dl], [dlopen],
1057
960
            [AC_CHECK_LIB([svld], [dlopen],
1058
961
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1059
962
              [AC_CHECK_LIB([dld], [dld_link],
1060
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
 
963
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1061
964
              ])
1062
965
            ])
1063
966
          ])
1123
1026
# ---------------------------------
1124
1027
# Check to see if options -c and -o are simultaneously supported by compiler
1125
1028
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1126
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1127
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1029
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1128
1030
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1129
1031
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1130
1032
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1132
1034
   mkdir conftest
1133
1035
   cd conftest
1134
1036
   mkdir out
1135
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1037
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1136
1038
 
1137
1039
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1138
1040
   # Insert the option either (1) after the last *FLAGS variable, or
1272
1174
   darwin*)
1273
1175
       if test -n "$STRIP" ; then
1274
1176
         striplib="$STRIP -x"
1275
 
         old_striplib="$STRIP -S"
1276
1177
         AC_MSG_RESULT([yes])
1277
1178
       else
1278
1179
  AC_MSG_RESULT([no])
1290
1191
# -----------------------------
1291
1192
# PORTME Fill in your ld.so characteristics
1292
1193
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1293
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1294
 
AC_MSG_CHECKING([dynamic linker characteristics])
 
1194
[AC_MSG_CHECKING([dynamic linker characteristics])
1295
1195
library_names_spec=
1296
1196
libname_spec='lib$name'
1297
1197
soname_spec=
1305
1205
version_type=none
1306
1206
dynamic_linker="$host_os ld.so"
1307
1207
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1308
 
m4_if($1,[],[
1309
1208
if test "$GCC" = yes; then
1310
 
  case $host_os in
1311
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1312
 
    *) lt_awk_arg="/^libraries:/" ;;
1313
 
  esac
1314
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1315
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
1209
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1210
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1316
1211
    # if the path contains ";" then we assume it to be the separator
1317
1212
    # otherwise default to the standard path separator (i.e. ":") - it is
1318
1213
    # assumed that no part of a normal pathname contains ";" but that should
1319
1214
    # okay in the real world where ";" in dirpaths is itself problematic.
1320
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
1215
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1321
1216
  else
1322
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1217
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1323
1218
  fi
1324
 
  # Ok, now we have the path, separated by spaces, we can step through it
1325
 
  # and add multilib dir if necessary.
1326
 
  lt_tmp_lt_search_path_spec=
1327
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1328
 
  for lt_sys_path in $lt_search_path_spec; do
1329
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1330
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1331
 
    else
1332
 
      test -d "$lt_sys_path" && \
1333
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1334
 
    fi
1335
 
  done
1336
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1337
 
BEGIN {RS=" "; FS="/|\n";} {
1338
 
  lt_foo="";
1339
 
  lt_count=0;
1340
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
1341
 
    if ($lt_i != "" && $lt_i != ".") {
1342
 
      if ($lt_i == "..") {
1343
 
        lt_count++;
1344
 
      } else {
1345
 
        if (lt_count == 0) {
1346
 
          lt_foo="/" $lt_i lt_foo;
1347
 
        } else {
1348
 
          lt_count--;
1349
 
        }
1350
 
      }
1351
 
    }
1352
 
  }
1353
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1354
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1355
 
}'`
1356
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1357
1219
else
1358
1220
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1359
 
fi])
 
1221
fi
1360
1222
need_lib_prefix=unknown
1361
1223
hardcode_into_libs=no
1362
1224
 
1374
1236
  soname_spec='${libname}${release}${shared_ext}$major'
1375
1237
  ;;
1376
1238
 
1377
 
aix[[4-9]]*)
 
1239
aix4* | aix5*)
1378
1240
  version_type=linux
1379
1241
  need_lib_prefix=no
1380
1242
  need_version=no
1513
1375
  shlibpath_overrides_runpath=yes
1514
1376
  shlibpath_var=DYLD_LIBRARY_PATH
1515
1377
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1516
 
  m4_if([$1], [],[
1517
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
1378
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
1379
  if test "$GCC" = yes; then
 
1380
    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"`
 
1381
  else
 
1382
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
1383
  fi
1518
1384
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1519
1385
  ;;
1520
1386
 
1531
1397
  dynamic_linker=no
1532
1398
  ;;
1533
1399
 
 
1400
kfreebsd*-gnu)
 
1401
  version_type=linux
 
1402
  need_lib_prefix=no
 
1403
  need_version=no
 
1404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1405
  soname_spec='${libname}${release}${shared_ext}$major'
 
1406
  shlibpath_var=LD_LIBRARY_PATH
 
1407
  shlibpath_overrides_runpath=no
 
1408
  hardcode_into_libs=yes
 
1409
  dynamic_linker='GNU ld.so'
 
1410
  ;;
 
1411
 
1534
1412
freebsd* | dragonfly*)
1535
1413
  # DragonFly does not have aout.  When/if they implement a new
1536
1414
  # versioning mechanism, adjust this.
1568
1446
    shlibpath_overrides_runpath=no
1569
1447
    hardcode_into_libs=yes
1570
1448
    ;;
1571
 
  *) # from 4.6 on, and DragonFly
 
1449
  freebsd*) # from 4.6 on
1572
1450
    shlibpath_overrides_runpath=yes
1573
1451
    hardcode_into_libs=yes
1574
1452
    ;;
1631
1509
  postinstall_cmds='chmod 555 $lib'
1632
1510
  ;;
1633
1511
 
1634
 
interix[[3-9]]*)
 
1512
interix3*)
1635
1513
  version_type=linux
1636
1514
  need_lib_prefix=no
1637
1515
  need_version=no
1686
1564
  ;;
1687
1565
 
1688
1566
# This must be Linux ELF.
1689
 
linux* | k*bsd*-gnu)
 
1567
linux*)
1690
1568
  version_type=linux
1691
1569
  need_lib_prefix=no
1692
1570
  need_version=no
1700
1578
  # before this can be enabled.
1701
1579
  hardcode_into_libs=yes
1702
1580
 
 
1581
  # find out which ABI we are using
 
1582
  libsuff=
 
1583
  case "$host_cpu" in
 
1584
  x86_64*|s390x*|powerpc64*)
 
1585
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1586
    if AC_TRY_EVAL(ac_compile); then
 
1587
      case `/usr/bin/file conftest.$ac_objext` in
 
1588
      *64-bit*)
 
1589
        libsuff=64
 
1590
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
1591
        ;;
 
1592
      esac
 
1593
    fi
 
1594
    rm -rf conftest*
 
1595
    ;;
 
1596
  esac
 
1597
 
1703
1598
  # Append ld.so.conf contents to the search path
1704
1599
  if test -f /etc/ld.so.conf; then
1705
 
    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' ' '`
1706
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
1600
    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' ' '`
 
1601
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1707
1602
  fi
1708
1603
 
1709
1604
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1715
1610
  dynamic_linker='GNU/Linux ld.so'
1716
1611
  ;;
1717
1612
 
1718
 
netbsdelf*-gnu)
 
1613
knetbsd*-gnu)
1719
1614
  version_type=linux
1720
1615
  need_lib_prefix=no
1721
1616
  need_version=no
1724
1619
  shlibpath_var=LD_LIBRARY_PATH
1725
1620
  shlibpath_overrides_runpath=no
1726
1621
  hardcode_into_libs=yes
1727
 
  dynamic_linker='NetBSD ld.elf_so'
 
1622
  dynamic_linker='GNU ld.so'
1728
1623
  ;;
1729
1624
 
1730
1625
netbsd*)
1808
1703
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1809
1704
  ;;
1810
1705
 
1811
 
rdos*)
1812
 
  dynamic_linker=no
1813
 
  ;;
1814
 
 
1815
1706
solaris*)
1816
1707
  version_type=linux
1817
1708
  need_lib_prefix=no
1907
1798
AC_MSG_RESULT([$dynamic_linker])
1908
1799
test "$dynamic_linker" = no && can_build_shared=no
1909
1800
 
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
 
 
1917
1801
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1918
1802
if test "$GCC" = yes; then
1919
1803
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1924
1808
# _LT_AC_TAGCONFIG
1925
1809
# ----------------
1926
1810
AC_DEFUN([_LT_AC_TAGCONFIG],
1927
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1928
 
AC_ARG_WITH([tags],
 
1811
[AC_ARG_WITH([tags],
1929
1812
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1930
1813
        [include additional configurations @<:@automatic@:>@])],
1931
1814
    [tagnames="$withval"])
2186
2069
 
2187
2070
# AC_PATH_TOOL_PREFIX
2188
2071
# -------------------
2189
 
# find a file program which can recognize shared library
 
2072
# find a file program which can recognise shared library
2190
2073
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2191
2074
[AC_REQUIRE([AC_PROG_EGREP])dnl
2192
2075
AC_MSG_CHECKING([for $1])
2249
2132
 
2250
2133
# AC_PATH_MAGIC
2251
2134
# -------------
2252
 
# find a file program which can recognize a shared library
 
2135
# find a file program which can recognise a shared library
2253
2136
AC_DEFUN([AC_PATH_MAGIC],
2254
2137
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2255
2138
if test -z "$lt_cv_path_MAGIC_CMD"; then
2396
2279
# how to check for library dependencies
2397
2280
#  -- PORTME fill in with the dynamic library characteristics
2398
2281
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2399
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
2282
[AC_CACHE_CHECK([how to recognise dependent libraries],
2400
2283
lt_cv_deplibs_check_method,
2401
2284
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2402
2285
lt_cv_file_magic_test_file=
2413
2296
# whether `pass_all' will *always* work, you probably want this one.
2414
2297
 
2415
2298
case $host_os in
2416
 
aix[[4-9]]*)
 
2299
aix4* | aix5*)
2417
2300
  lt_cv_deplibs_check_method=pass_all
2418
2301
  ;;
2419
2302
 
2435
2318
 
2436
2319
mingw* | pw32*)
2437
2320
  # Base MSYS/MinGW do not provide the 'file' command needed by
2438
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
2439
 
  # unless we find 'file', for example because we are cross-compiling.
2440
 
  if ( file / ) >/dev/null 2>&1; then
2441
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2442
 
    lt_cv_file_magic_cmd='func_win32_libid'
2443
 
  else
2444
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2445
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
2446
 
  fi
 
2321
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2322
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2323
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2447
2324
  ;;
2448
2325
 
2449
2326
darwin* | rhapsody*)
2450
2327
  lt_cv_deplibs_check_method=pass_all
2451
2328
  ;;
2452
2329
 
2453
 
freebsd* | dragonfly*)
 
2330
freebsd* | kfreebsd*-gnu | dragonfly*)
2454
2331
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2455
2332
    case $host_cpu in
2456
2333
    i*86 )
2488
2365
  esac
2489
2366
  ;;
2490
2367
 
2491
 
interix[[3-9]]*)
 
2368
interix3*)
2492
2369
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2493
2370
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2494
2371
  ;;
2504
2381
  ;;
2505
2382
 
2506
2383
# This must be Linux ELF.
2507
 
linux* | k*bsd*-gnu)
 
2384
linux*)
2508
2385
  lt_cv_deplibs_check_method=pass_all
2509
2386
  ;;
2510
2387
 
2511
 
netbsd* | netbsdelf*-gnu)
 
2388
netbsd*)
2512
2389
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2513
2390
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2514
2391
  else
2538
2415
  lt_cv_deplibs_check_method=pass_all
2539
2416
  ;;
2540
2417
 
2541
 
rdos*)
2542
 
  lt_cv_deplibs_check_method=pass_all
2543
 
  ;;
2544
 
 
2545
2418
solaris*)
2546
2419
  lt_cv_deplibs_check_method=pass_all
2547
2420
  ;;
2594
2467
  lt_cv_path_NM="$NM"
2595
2468
else
2596
2469
  lt_nm_to_check="${ac_tool_prefix}nm"
2597
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
2470
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
2598
2471
    lt_nm_to_check="$lt_nm_to_check nm"
2599
2472
  fi
2600
2473
  for lt_tmp_nm in $lt_nm_to_check; do
2810
2683
_LT_AC_TAGVAR(objext, $1)=$objext
2811
2684
 
2812
2685
# Code to be used in simple compile tests
2813
 
lt_simple_compile_test_code="int some_variable = 0;"
 
2686
lt_simple_compile_test_code="int some_variable = 0;\n"
2814
2687
 
2815
2688
# Code to be used in simple link tests
2816
 
lt_simple_link_test_code='int main(){return(0);}'
 
2689
lt_simple_link_test_code='int main(){return(0);}\n'
2817
2690
 
2818
2691
_LT_AC_SYS_COMPILER
2819
2692
 
2849
2722
  fi
2850
2723
  ;;
2851
2724
 
2852
 
aix[[4-9]]*)
 
2725
aix4* | aix5*)
2853
2726
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2854
2727
    test "$enable_shared" = yes && enable_static=no
2855
2728
  fi
2906
2779
_LT_AC_TAGVAR(predeps, $1)=
2907
2780
_LT_AC_TAGVAR(postdeps, $1)=
2908
2781
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2909
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2910
2782
 
2911
2783
# Source file extension for C++ test sources.
2912
2784
ac_ext=cpp
2916
2788
_LT_AC_TAGVAR(objext, $1)=$objext
2917
2789
 
2918
2790
# Code to be used in simple compile tests
2919
 
lt_simple_compile_test_code="int some_variable = 0;"
 
2791
lt_simple_compile_test_code="int some_variable = 0;\n"
2920
2792
 
2921
2793
# Code to be used in simple link tests
2922
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
2794
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2923
2795
 
2924
2796
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2925
2797
_LT_AC_SYS_COMPILER
3016
2888
    # FIXME: insert proper C++ library support
3017
2889
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3018
2890
    ;;
3019
 
  aix[[4-9]]*)
 
2891
  aix4* | aix5*)
3020
2892
    if test "$host_cpu" = ia64; then
3021
2893
      # On IA64, the linker does run time linking by default, so we don't
3022
2894
      # have to do anything special.
3029
2901
      # Test if we are trying to use run time linking or normal
3030
2902
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3031
2903
      # need to do runtime linking.
3032
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
2904
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3033
2905
        for ld_flag in $LDFLAGS; do
3034
2906
          case $ld_flag in
3035
2907
          *-brtl*)
3065
2937
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3066
2938
        then
3067
2939
          # We have reworked collect2
3068
 
          :
 
2940
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3069
2941
        else
3070
2942
          # We have old collect2
3071
2943
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3175
3047
    fi
3176
3048
  ;;
3177
3049
      darwin* | rhapsody*)
 
3050
        case $host_os in
 
3051
        rhapsody* | darwin1.[[012]])
 
3052
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
3053
         ;;
 
3054
       *) # Darwin 1.3 on
 
3055
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3056
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3057
         else
 
3058
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
3059
             10.[[012]])
 
3060
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3061
               ;;
 
3062
             10.*)
 
3063
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
3064
               ;;
 
3065
           esac
 
3066
         fi
 
3067
         ;;
 
3068
        esac
3178
3069
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3179
3070
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3180
3071
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3181
3072
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3182
3073
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3183
3074
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3184
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3185
 
      if test "$GXX" = yes ; then
 
3075
 
 
3076
    if test "$GXX" = yes ; then
 
3077
      lt_int_apple_cc_single_mod=no
3186
3078
      output_verbose_link_cmd='echo'
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}"
 
3079
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3080
       lt_int_apple_cc_single_mod=yes
3194
3081
      fi
 
3082
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3083
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3084
      else
 
3085
          _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'
 
3086
        fi
 
3087
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3088
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3089
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3090
            _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}'
 
3091
          else
 
3092
            _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}'
 
3093
          fi
 
3094
            _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}'
3195
3095
      else
3196
3096
      case $cc_basename in
3197
3097
        xlc*)
3198
3098
         output_verbose_link_cmd='echo'
3199
 
          _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'
 
3099
          _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'
3200
3100
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3201
3101
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3202
 
          _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}'
 
3102
          _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}'
3203
3103
          _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}'
3204
3104
          ;;
3205
3105
       *)
3233
3133
  freebsd-elf*)
3234
3134
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3235
3135
    ;;
3236
 
  freebsd* | dragonfly*)
 
3136
  freebsd* | kfreebsd*-gnu | dragonfly*)
3237
3137
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3238
3138
    # conventions
3239
3139
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3282
3182
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3283
3183
 
3284
3184
      case $host_cpu in
3285
 
      hppa*64*|ia64*) ;;
 
3185
      hppa*64*|ia64*)
 
3186
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
3187
        ;;
3286
3188
      *)
3287
3189
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3288
3190
        ;;
3350
3252
        ;;
3351
3253
    esac
3352
3254
    ;;
3353
 
  interix[[3-9]]*)
 
3255
  interix3*)
3354
3256
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3355
3257
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3356
3258
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3390
3292
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3391
3293
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3392
3294
    ;;
3393
 
  linux* | k*bsd*-gnu)
 
3295
  linux*)
3394
3296
    case $cc_basename in
3395
3297
      KCC*)
3396
3298
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3442
3344
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3443
3345
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3444
3346
        ;;
3445
 
      pgCC* | pgcpp*)
 
3347
      pgCC*)
3446
3348
        # Portland Group C++ compiler
3447
3349
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3448
3350
        _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'
3470
3372
        # dependencies.
3471
3373
        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'
3472
3374
        ;;
3473
 
      *)
3474
 
        case `$CC -V 2>&1 | sed 5q` in
3475
 
        *Sun\ C*)
3476
 
          # Sun C++ 5.9
3477
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3478
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3479
 
          _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'
3480
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3481
 
          _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'
3482
 
 
3483
 
          # Not sure whether something based on
3484
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3485
 
          # would be better.
3486
 
          output_verbose_link_cmd='echo'
3487
 
 
3488
 
          # Archives containing C++ object files must be created using
3489
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3490
 
          # necessary to make sure instantiated templates are included
3491
 
          # in the archive.
3492
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3493
 
          ;;
3494
 
        esac
3495
 
        ;;
3496
3375
    esac
3497
3376
    ;;
3498
3377
  lynxos*)
3515
3394
        ;;
3516
3395
    esac
3517
3396
    ;;
3518
 
  netbsd* | netbsdelf*-gnu)
 
3397
  netbsd*)
3519
3398
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3520
3399
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3521
3400
      wlarc=
3531
3410
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3532
3411
    ;;
3533
3412
  openbsd*)
3534
 
    if test -f /usr/libexec/ld.so; then
3535
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3536
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3537
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3538
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3539
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3540
 
        _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'
3541
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3542
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3543
 
      fi
3544
 
      output_verbose_link_cmd='echo'
3545
 
    else
3546
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3413
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3414
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3415
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3416
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3417
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3418
      _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'
 
3419
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3420
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3547
3421
    fi
 
3422
    output_verbose_link_cmd='echo'
3548
3423
    ;;
3549
3424
  osf3*)
3550
3425
    case $cc_basename in
3706
3581
        case $host_os in
3707
3582
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3708
3583
          *)
3709
 
            # The compiler driver will combine and reorder linker options,
3710
 
            # but understands `-z linker_flag'.
 
3584
            # The C++ compiler is used as linker so we must use $wl
 
3585
            # flag to pass the commands to the underlying system
 
3586
            # linker. We must also pass each convience library through
 
3587
            # to the system linker between allextract/defaultextract.
 
3588
            # The C++ compiler will combine linker options so we
 
3589
            # cannot just pass the convience library names through
 
3590
            # without $wl.
3711
3591
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3712
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
3592
            _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'
3713
3593
            ;;
3714
3594
        esac
3715
3595
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3756
3636
          fi
3757
3637
 
3758
3638
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3759
 
          case $host_os in
3760
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3761
 
          *)
3762
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3763
 
            ;;
3764
 
          esac
3765
3639
        fi
3766
3640
        ;;
3767
3641
    esac
3877
3751
# compiler output when linking a shared library.
3878
3752
# Parse the compiler output and extract the necessary
3879
3753
# objects, libraries and library flags.
3880
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3881
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3754
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3882
3755
dnl we can't use the lt_simple_compile_test_code here,
3883
3756
dnl because it contains code intended for an executable,
3884
3757
dnl not a library.  It's possible we should let each
4003
3876
 
4004
3877
$rm -f confest.$objext
4005
3878
 
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
 
 
4011
3879
# PORTME: override above test on systems where it is broken
4012
3880
ifelse([$1],[CXX],
4013
3881
[case $host_os in
4014
 
interix[[3-9]]*)
 
3882
interix3*)
4015
3883
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4016
3884
  # hack all around it, let's just trust "g++" to DTRT.
4017
3885
  _LT_AC_TAGVAR(predep_objects,$1)=
4019
3887
  _LT_AC_TAGVAR(postdeps,$1)=
4020
3888
  ;;
4021
3889
 
4022
 
linux*)
4023
 
  case `$CC -V 2>&1 | sed 5q` in
4024
 
  *Sun\ C*)
4025
 
    # Sun C++ 5.9
4026
 
    #
4027
 
    # The more standards-conforming stlport4 library is
4028
 
    # incompatible with the Cstd library. Avoid specifying
4029
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4030
 
    # -library=stlport4 depends on it.
4031
 
    case " $CXX $CXXFLAGS " in
4032
 
    *" -library=stlport4 "*)
4033
 
      solaris_use_stlport4=yes
4034
 
      ;;
4035
 
    esac
4036
 
    if test "$solaris_use_stlport4" != yes; then
4037
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4038
 
    fi
4039
 
    ;;
4040
 
  esac
4041
 
  ;;
4042
 
 
4043
3890
solaris*)
4044
3891
  case $cc_basename in
4045
3892
  CC*)
4046
 
    # The more standards-conforming stlport4 library is
4047
 
    # incompatible with the Cstd library. Avoid specifying
4048
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4049
 
    # -library=stlport4 depends on it.
4050
 
    case " $CXX $CXXFLAGS " in
4051
 
    *" -library=stlport4 "*)
4052
 
      solaris_use_stlport4=yes
4053
 
      ;;
4054
 
    esac
4055
 
 
4056
3893
    # Adding this requires a known-good setup of shared libraries for
4057
3894
    # Sun compiler versions before 5.6, else PIC objects from an old
4058
3895
    # archive will be linked into the output, leading to subtle bugs.
4059
 
    if test "$solaris_use_stlport4" != yes; then
4060
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4061
 
    fi
 
3896
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4062
3897
    ;;
4063
3898
  esac
4064
3899
  ;;
4065
3900
esac
4066
3901
])
 
3902
 
4067
3903
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4068
3904
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4069
3905
esac
4106
3942
_LT_AC_TAGVAR(objext, $1)=$objext
4107
3943
 
4108
3944
# Code to be used in simple compile tests
4109
 
lt_simple_compile_test_code="\
4110
 
      subroutine t
4111
 
      return
4112
 
      end
4113
 
"
 
3945
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
4114
3946
 
4115
3947
# Code to be used in simple link tests
4116
 
lt_simple_link_test_code="\
4117
 
      program t
4118
 
      end
4119
 
"
 
3948
lt_simple_link_test_code="      program t\n      end\n"
4120
3949
 
4121
3950
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4122
3951
_LT_AC_SYS_COMPILER
4148
3977
    postinstall_cmds='$RANLIB $lib'
4149
3978
  fi
4150
3979
  ;;
4151
 
aix[[4-9]]*)
 
3980
aix4* | aix5*)
4152
3981
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4153
3982
    test "$enable_shared" = yes && enable_static=no
4154
3983
  fi
4195
4024
_LT_AC_TAGVAR(objext, $1)=$objext
4196
4025
 
4197
4026
# Code to be used in simple compile tests
4198
 
lt_simple_compile_test_code="class foo {}"
 
4027
lt_simple_compile_test_code="class foo {}\n"
4199
4028
 
4200
4029
# Code to be used in simple link tests
4201
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
4030
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4202
4031
 
4203
4032
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4204
4033
_LT_AC_SYS_COMPILER
4251
4080
_LT_AC_TAGVAR(objext, $1)=$objext
4252
4081
 
4253
4082
# Code to be used in simple compile tests
4254
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
4083
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4255
4084
 
4256
4085
# Code to be used in simple link tests
4257
4086
lt_simple_link_test_code="$lt_simple_compile_test_code"
4325
4154
    _LT_AC_TAGVAR(predeps, $1) \
4326
4155
    _LT_AC_TAGVAR(postdeps, $1) \
4327
4156
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4328
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4329
4157
    _LT_AC_TAGVAR(archive_cmds, $1) \
4330
4158
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4331
4159
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4341
4169
    _LT_AC_TAGVAR(module_cmds, $1) \
4342
4170
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4343
4171
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4344
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4345
4172
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4346
4173
    _LT_AC_TAGVAR(include_expsyms, $1); do
4347
4174
 
4388
4215
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4389
4216
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4390
4217
#
4391
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
4218
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4392
4219
# Free Software Foundation, Inc.
4393
4220
#
4394
4221
# This file is part of GNU Libtool:
4625
4452
# shared library.
4626
4453
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4627
4454
 
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
 
 
4632
4455
# The library search path used internally by the compiler when linking
4633
4456
# a shared library.
4634
4457
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4717
4540
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4718
4541
 
4719
4542
# Fix the shell variable \$srcfile for the compiler.
4720
 
fix_srcfile_path=$lt_fix_srcfile_path
 
4543
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4721
4544
 
4722
4545
# Set to yes if exported symbols are required.
4723
4546
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4800
4623
# ---------------------------------
4801
4624
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4802
4625
[AC_REQUIRE([AC_CANONICAL_HOST])
4803
 
AC_REQUIRE([LT_AC_PROG_SED])
4804
4626
AC_REQUIRE([AC_PROG_NM])
4805
4627
AC_REQUIRE([AC_OBJEXT])
4806
4628
# Check for command to grab the raw symbol name followed by C symbol from nm.
4837
4659
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4838
4660
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4839
4661
  ;;
4840
 
linux* | k*bsd*-gnu)
 
4662
linux*)
4841
4663
  if test "$host_cpu" = ia64; then
4842
4664
    symcode='[[ABCDGIRSTW]]'
4843
4665
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4978
4800
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4979
4801
    cat conftest.$ac_ext >&5
4980
4802
  fi
4981
 
  rm -rf conftest* conftst*
 
4803
  rm -f conftest* conftst*
4982
4804
 
4983
4805
  # Do not use the global_symbol_pipe unless it works.
4984
4806
  if test "$pipe_works" = yes; then
5027
4849
      # like `-m68040'.
5028
4850
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5029
4851
      ;;
5030
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4852
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5031
4853
      # PIC is the default for these OSes.
5032
4854
      ;;
5033
 
    mingw* | cygwin* | os2* | pw32*)
 
4855
    mingw* | os2* | pw32*)
5034
4856
      # This hack is so that the source file can tell whether it is being
5035
4857
      # built for inclusion in a dll (and should export symbols for example).
5036
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5037
 
      # (--disable-auto-import) libraries
5038
 
      m4_if([$1], [GCJ], [],
5039
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4858
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5040
4859
      ;;
5041
4860
    darwin* | rhapsody*)
5042
4861
      # PIC is the default on this platform
5047
4866
      # DJGPP does not support shared libraries at all
5048
4867
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5049
4868
      ;;
5050
 
    interix[[3-9]]*)
 
4869
    interix3*)
5051
4870
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5052
4871
      # Instead, we relocate shared libraries at runtime.
5053
4872
      ;;
5073
4892
    esac
5074
4893
  else
5075
4894
    case $host_os in
5076
 
      aix[[4-9]]*)
 
4895
      aix4* | aix5*)
5077
4896
        # All AIX code is PIC.
5078
4897
        if test "$host_cpu" = ia64; then
5079
4898
          # AIX 5 now supports IA64 processor
5113
4932
            ;;
5114
4933
        esac
5115
4934
        ;;
5116
 
      freebsd* | dragonfly*)
 
4935
      freebsd* | kfreebsd*-gnu | dragonfly*)
5117
4936
        # FreeBSD uses GNU C++
5118
4937
        ;;
5119
4938
      hpux9* | hpux10* | hpux11*)
5156
4975
            ;;
5157
4976
        esac
5158
4977
        ;;
5159
 
      linux* | k*bsd*-gnu)
 
4978
      linux*)
5160
4979
        case $cc_basename in
5161
4980
          KCC*)
5162
4981
            # KAI C++ Compiler
5169
4988
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5170
4989
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5171
4990
            ;;
5172
 
          pgCC* | pgcpp*)
 
4991
          pgCC*)
5173
4992
            # Portland Group C++ compiler.
5174
4993
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5175
4994
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5183
5002
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5184
5003
            ;;
5185
5004
          *)
5186
 
            case `$CC -V 2>&1 | sed 5q` in
5187
 
            *Sun\ C*)
5188
 
              # Sun C++ 5.9
5189
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5190
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5191
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5192
 
              ;;
5193
 
            esac
5194
5005
            ;;
5195
5006
        esac
5196
5007
        ;;
5207
5018
            ;;
5208
5019
        esac
5209
5020
        ;;
5210
 
      netbsd* | netbsdelf*-gnu)
 
5021
      netbsd*)
5211
5022
        ;;
5212
5023
      osf3* | osf4* | osf5*)
5213
5024
        case $cc_basename in
5311
5122
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5312
5123
      ;;
5313
5124
 
5314
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5125
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5315
5126
      # PIC is the default for these OSes.
5316
5127
      ;;
5317
5128
 
5318
 
    mingw* | cygwin* | pw32* | os2*)
 
5129
    mingw* | pw32* | os2*)
5319
5130
      # This hack is so that the source file can tell whether it is being
5320
5131
      # built for inclusion in a dll (and should export symbols for example).
5321
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5322
 
      # (--disable-auto-import) libraries
5323
 
      m4_if([$1], [GCJ], [],
5324
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5132
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5325
5133
      ;;
5326
5134
 
5327
5135
    darwin* | rhapsody*)
5330
5138
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5331
5139
      ;;
5332
5140
 
5333
 
    interix[[3-9]]*)
 
5141
    interix3*)
5334
5142
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5335
5143
      # Instead, we relocate shared libraries at runtime.
5336
5144
      ;;
5388
5196
       esac
5389
5197
       ;;
5390
5198
 
5391
 
    mingw* | cygwin* | pw32* | os2*)
 
5199
    mingw* | pw32* | os2*)
5392
5200
      # This hack is so that the source file can tell whether it is being
5393
5201
      # built for inclusion in a dll (and should export symbols for example).
5394
 
      m4_if([$1], [GCJ], [],
5395
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5202
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5396
5203
      ;;
5397
5204
 
5398
5205
    hpux9* | hpux10* | hpux11*)
5422
5229
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5423
5230
      ;;
5424
5231
 
5425
 
    linux* | k*bsd*-gnu)
 
5232
    linux*)
5426
5233
      case $cc_basename in
5427
5234
      icc* | ecc*)
5428
5235
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5441
5248
        # All Alpha code is PIC.
5442
5249
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5443
5250
        ;;
5444
 
      *)
5445
 
        case `$CC -V 2>&1 | sed 5q` in
5446
 
        *Sun\ C*)
5447
 
          # Sun C 5.9
5448
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5449
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5450
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5451
 
          ;;
5452
 
        *Sun\ F*)
5453
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5454
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5455
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5456
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5457
 
          ;;
5458
 
        esac
5459
 
        ;;
5460
5251
      esac
5461
5252
      ;;
5462
5253
 
5466
5257
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5467
5258
      ;;
5468
5259
 
5469
 
    rdos*)
5470
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5471
 
      ;;
5472
 
 
5473
5260
    solaris*)
5474
5261
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5475
5262
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5529
5316
#
5530
5317
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5531
5318
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5532
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
 
5319
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5533
5320
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5534
5321
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5535
5322
     "" | " "*) ;;
5553
5340
#
5554
5341
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5555
5342
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5556
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5343
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5557
5344
  $lt_tmp_static_flag,
5558
5345
  [],
5559
5346
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5564
5351
# ------------------------------------
5565
5352
# See if the linker supports building shared libraries.
5566
5353
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5567
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5568
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5354
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5569
5355
ifelse([$1],[CXX],[
5570
5356
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5571
5357
  case $host_os in
5572
 
  aix[[4-9]]*)
 
5358
  aix4* | aix5*)
5573
5359
    # If we're using GNU nm, then we don't want the "-C" option.
5574
5360
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5575
5361
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5582
5368
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5583
5369
  ;;
5584
5370
  cygwin* | mingw*)
5585
 
    _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'
5586
 
  ;;
5587
 
  linux* | k*bsd*-gnu)
5588
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5371
    _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'
5589
5372
  ;;
5590
5373
  *)
5591
5374
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5592
5375
  ;;
5593
5376
  esac
5594
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5595
5377
],[
5596
5378
  runpath_var=
5597
5379
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5622
5404
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5623
5405
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5624
5406
  # as well as any symbol that contains `d'.
5625
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5407
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5626
5408
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5627
5409
  # platforms (ab)use it in PIC code, but their linkers get confused if
5628
5410
  # the symbol is explicitly referenced.  Since portable code cannot
5629
5411
  # rely on this symbol name, it's probably fine to never include it in
5630
5412
  # preloaded symbol tables.
5631
 
  # Exclude shared library initialization/finalization symbols.
5632
 
dnl Note also adjust exclude_expsyms for C++ above.
5633
5413
  extract_expsyms_cmds=
5634
5414
  # Just being paranoid about ensuring that cc_basename is set.
5635
5415
  _LT_CC_BASENAME([$compiler])
5679
5459
 
5680
5460
    # See if GNU ld supports shared libraries.
5681
5461
    case $host_os in
5682
 
    aix[[3-9]]*)
 
5462
    aix3* | aix4* | aix5*)
5683
5463
      # On AIX/PPC, the GNU linker is very broken
5684
5464
      if test "$host_cpu" != ia64; then
5685
5465
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5727
5507
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5728
5508
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5729
5509
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5730
 
      _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'
 
5510
      _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'
5731
5511
 
5732
5512
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5733
5513
        _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'
5745
5525
      fi
5746
5526
      ;;
5747
5527
 
5748
 
    interix[[3-9]]*)
 
5528
    interix3*)
5749
5529
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5750
5530
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5751
5531
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5760
5540
      _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'
5761
5541
      ;;
5762
5542
 
5763
 
    gnu* | linux* | k*bsd*-gnu)
 
5543
    linux*)
5764
5544
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5765
5545
        tmp_addflag=
5766
5546
        case $cc_basename,$host_cpu in
5778
5558
        ifc* | ifort*)                  # Intel Fortran compiler
5779
5559
          tmp_addflag=' -nofor_main' ;;
5780
5560
        esac
5781
 
        case `$CC -V 2>&1 | sed 5q` in
5782
 
        *Sun\ C*)                       # Sun C 5.9
5783
 
          _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'
5784
 
          tmp_sharedflag='-G' ;;
5785
 
        *Sun\ F*)                       # Sun Fortran 8.3
5786
 
          tmp_sharedflag='-G' ;;
5787
 
        *)
5788
 
          tmp_sharedflag='-shared' ;;
5789
 
        esac
5790
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5561
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5791
5562
 
5792
5563
        if test $supports_anon_versioning = yes; then
5793
5564
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5794
5565
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5795
5566
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5796
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5567
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5797
5568
        fi
5798
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5799
5569
      else
5800
5570
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5801
5571
      fi
5802
5572
      ;;
5803
5573
 
5804
 
    netbsd* | netbsdelf*-gnu)
 
5574
    netbsd*)
5805
5575
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5806
5576
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5807
5577
        wlarc=
5834
5604
 
5835
5605
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5836
5606
      case `$LD -v 2>&1` in
5837
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5607
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
5838
5608
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5839
5609
        cat <<_LT_EOF 1>&2
5840
5610
 
5899
5669
      fi
5900
5670
      ;;
5901
5671
 
5902
 
    aix[[4-9]]*)
 
5672
    aix4* | aix5*)
5903
5673
      if test "$host_cpu" = ia64; then
5904
5674
        # On IA64, the linker does run time linking by default, so we don't
5905
5675
        # have to do anything special.
5919
5689
        # Test if we are trying to use run time linking or normal
5920
5690
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5921
5691
        # need to do runtime linking.
5922
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
5692
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5923
5693
          for ld_flag in $LDFLAGS; do
5924
5694
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5925
5695
            aix_use_runtimelinking=yes
5953
5723
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5954
5724
          then
5955
5725
          # We have reworked collect2
5956
 
          :
 
5726
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5957
5727
          else
5958
5728
          # We have old collect2
5959
5729
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6046
5816
      # The linker will automatically build a .lib file if we build a DLL.
6047
5817
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6048
5818
      # FIXME: Should let the user specify the lib program.
6049
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5819
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6050
5820
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6051
5821
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6052
5822
      ;;
6079
5849
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6080
5850
    if test "$GCC" = yes ; then
6081
5851
        output_verbose_link_cmd='echo'
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}"
 
5852
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5853
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5854
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5855
      _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}'
 
5856
      _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}'
6086
5857
    else
6087
5858
      case $cc_basename in
6088
5859
        xlc*)
6089
5860
         output_verbose_link_cmd='echo'
6090
 
         _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'
 
5861
         _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'
6091
5862
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6092
5863
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6093
 
         _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}'
 
5864
         _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}'
6094
5865
          _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}'
6095
5866
          ;;
6096
5867
       *)
6130
5901
      ;;
6131
5902
 
6132
5903
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6133
 
    freebsd* | dragonfly*)
 
5904
    freebsd* | kfreebsd*-gnu | dragonfly*)
6134
5905
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6135
5906
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6136
5907
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6232
6003
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6233
6004
      ;;
6234
6005
 
6235
 
    netbsd* | netbsdelf*-gnu)
 
6006
    netbsd*)
6236
6007
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6237
6008
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6238
6009
      else
6252
6023
      ;;
6253
6024
 
6254
6025
    openbsd*)
6255
 
      if test -f /usr/libexec/ld.so; then
6256
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6257
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6258
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6259
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6260
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6261
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6262
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6263
 
        else
6264
 
          case $host_os in
6265
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6266
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6267
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6268
 
             ;;
6269
 
           *)
6270
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6271
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6272
 
             ;;
6273
 
          esac
6274
 
        fi
 
6026
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6027
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6028
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6029
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6030
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6031
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6032
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6275
6033
      else
6276
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6034
       case $host_os in
 
6035
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6036
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6037
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6038
           ;;
 
6039
         *)
 
6040
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6041
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6042
           ;;
 
6043
       esac
6277
6044
      fi
6278
6045
      ;;
6279
6046
 
6332
6099
      case $host_os in
6333
6100
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6334
6101
      *)
6335
 
        # The compiler driver will combine and reorder linker options,
6336
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6337
 
        # but is careful enough not to reorder.
 
6102
        # The compiler driver will combine linker options so we
 
6103
        # cannot just pass the convience library names through
 
6104
        # without $wl, iff we do not link with $LD.
 
6105
        # Luckily, gcc supports the same syntax we need for Sun Studio.
6338
6106
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6339
 
        if test "$GCC" = yes; then
6340
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6341
 
        else
6342
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6343
 
        fi
6344
 
        ;;
 
6107
        case $wlarc in
 
6108
        '')
 
6109
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6110
        *)
 
6111
          _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' ;;
 
6112
        esac ;;
6345
6113
      esac
6346
6114
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6347
6115
      ;;
6398
6166
      fi
6399
6167
      ;;
6400
6168
 
6401
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6169
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6402
6170
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6403
6171
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6404
6172
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6473
6241
      # to ld, don't add -lc before -lgcc.
6474
6242
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6475
6243
      $rm conftest*
6476
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6244
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6477
6245
 
6478
6246
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6479
6247
        soname=conftest
6576
6344
[AC_CHECK_TOOL(RC, windres, no)
6577
6345
])
6578
6346
 
6579
 
 
6580
 
# Cheap backport of AS_EXECUTABLE_P and required macros
6581
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
6582
 
 
6583
 
# _AS_TEST_PREPARE
6584
 
# ----------------
6585
 
m4_ifndef([_AS_TEST_PREPARE],
6586
 
[m4_defun([_AS_TEST_PREPARE],
6587
 
[if test -x / >/dev/null 2>&1; then
6588
 
  as_executable_p='test -x'
6589
 
else
6590
 
  as_executable_p='test -f'
6591
 
fi
6592
 
])])# _AS_TEST_PREPARE
6593
 
 
6594
 
# AS_EXECUTABLE_P
6595
 
# ---------------
6596
 
# Check whether a file is executable.
6597
 
m4_ifndef([AS_EXECUTABLE_P],
6598
 
[m4_defun([AS_EXECUTABLE_P],
6599
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6600
 
$as_executable_p $1[]dnl
6601
 
])])# AS_EXECUTABLE_P
6602
 
 
6603
6347
# NOTE: This macro has been submitted for inclusion into   #
6604
6348
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6605
6349
#  a released version of Autoconf we should remove this    #
6620
6364
  test -z "$as_dir" && as_dir=.
6621
6365
  for lt_ac_prog in sed gsed; do
6622
6366
    for ac_exec_ext in '' $ac_executable_extensions; do
6623
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
6367
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6624
6368
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6625
6369
      fi
6626
6370
    done
6627
6371
  done
6628
6372
done
6629
 
IFS=$as_save_IFS
6630
6373
lt_ac_max=0
6631
6374
lt_ac_count=0
6632
6375
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6659
6402
done
6660
6403
])
6661
6404
SED=$lt_cv_path_SED
6662
 
AC_SUBST([SED])
6663
6405
AC_MSG_RESULT([$SED])
6664
6406
])
6665
6407
 
6801
6543
 
6802
6544
_PKG_TEXT
6803
6545
])],
6804
 
                [AC_MSG_RESULT([no])
6805
 
                $4])
 
6546
                [$4])
6806
6547
elif test $pkg_failed = untried; then
6807
6548
        ifelse([$4], , [AC_MSG_FAILURE(dnl
6808
6549
[The pkg-config script could not be found or is too old.  Make sure it
6811
6552
 
6812
6553
_PKG_TEXT
6813
6554
 
6814
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
6555
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
6815
6556
                [$4])
6816
6557
else
6817
6558
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7699
7440
AC_SUBST([am__untar])
7700
7441
]) # _AM_PROG_TAR
7701
7442
 
 
7443
m4_include([acinclude.m4])