~ubuntu-branches/ubuntu/vivid/transcode/vivid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2009-01-08 22:33:52 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090108223352-xzwpx7r22tzm7grp
Tags: 2:1.0.7-0ubuntu1
* New upstream release. (LP: #311202)
* debian/watch: Update 
* debian/patches/01_configure.dpatch, 03_imagemagick.dpatch,
  05_filter.c.dpatch, 06_libavcodec.dpatch: Dropped, applied upstream 
* debian/control: libmagickwand-dev, build-depend on new Imagemagick dev
  package.
* debian/patches/01_configure_magickcore.dpatch, 98_autoreconf.dpatch:
  Link against -lMagickCore instead of -lMagick, upstream changed name.
* debian/control: Bump s-v to 3.8.0, add homepage field 
* debian/control: Recommend mawk to run provided scripts 
* debian/control: linux -> Linux spelling fix (Lintian) 
* debian/control, debian/rules: Strip rpath from
  /usr/lib/transcode/export_fame.so 
* debian/transcode-doc.doc-base, debian/copyright, debian/changelog: Fix
  encoding.
* debian/transcode-doc.doc-base: Use valid section.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- 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  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_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'.])])
 
21
 
14
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
23
 
16
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
24
# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
17
25
 
18
26
 
19
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
101
109
AC_REQUIRE([AC_OBJEXT])dnl
102
110
AC_REQUIRE([AC_EXEEXT])dnl
103
111
dnl
104
 
 
105
112
AC_LIBTOOL_SYS_MAX_CMD_LEN
106
113
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
107
114
AC_LIBTOOL_OBJDIR
176
183
test -z "$ac_objext" && ac_objext=o
177
184
 
178
185
# Determine commands to create old-style static archives.
179
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
186
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
180
187
old_postinstall_cmds='chmod 644 $oldlib'
181
188
old_postuninstall_cmds=
182
189
 
203
210
  ;;
204
211
esac
205
212
 
 
213
_LT_REQUIRED_DARWIN_CHECKS
 
214
 
206
215
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
207
216
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
208
217
enable_win32_dll=yes, enable_win32_dll=no)
237
246
# If no C compiler flags were specified, use CFLAGS.
238
247
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
239
248
 
 
249
# If no C compiler flags were specified, use CFLAGS.
 
250
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
251
 
240
252
# Allow CC to be a program name with arguments.
241
253
compiler=$CC
242
254
])# _LT_AC_SYS_COMPILER
263
275
# Check for compiler boilerplate output or warnings with
264
276
# the simple compiler test code.
265
277
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
 
[ac_outfile=conftest.$ac_objext
267
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
278
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
279
ac_outfile=conftest.$ac_objext
 
280
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268
281
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
282
_lt_compiler_boilerplate=`cat conftest.err`
270
283
$rm conftest*
276
289
# Check for linker boilerplate output or warnings with
277
290
# the simple link test code.
278
291
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
 
[ac_outfile=conftest.$ac_objext
280
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
292
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
293
ac_outfile=conftest.$ac_objext
 
294
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
295
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
296
_lt_linker_boilerplate=`cat conftest.err`
283
 
$rm conftest*
 
297
$rm -r conftest*
284
298
])# _LT_LINKER_BOILERPLATE
285
299
 
 
300
# _LT_REQUIRED_DARWIN_CHECKS
 
301
# --------------------------
 
302
# Check for some things on darwin
 
303
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
304
  case $host_os in
 
305
    rhapsody* | darwin*)
 
306
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
307
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
308
 
 
309
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
310
      [lt_cv_apple_cc_single_mod=no
 
311
      if test -z "${LT_MULTI_MODULE}"; then
 
312
   # By default we will add the -single_module flag. You can override
 
313
   # by either setting the environment variable LT_MULTI_MODULE
 
314
   # non-empty at configure time, or by adding -multi_module to the
 
315
   # link flags.
 
316
   echo "int foo(void){return 1;}" > conftest.c
 
317
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
318
     -dynamiclib ${wl}-single_module conftest.c
 
319
   if test -f libconftest.dylib; then
 
320
     lt_cv_apple_cc_single_mod=yes
 
321
     rm -rf libconftest.dylib*
 
322
   fi
 
323
   rm conftest.c
 
324
      fi])
 
325
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
326
      [lt_cv_ld_exported_symbols_list],
 
327
      [lt_cv_ld_exported_symbols_list=no
 
328
      save_LDFLAGS=$LDFLAGS
 
329
      echo "_main" > conftest.sym
 
330
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
331
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
332
   [lt_cv_ld_exported_symbols_list=yes],
 
333
   [lt_cv_ld_exported_symbols_list=no])
 
334
   LDFLAGS="$save_LDFLAGS"
 
335
    ])
 
336
    case $host_os in
 
337
    rhapsody* | darwin1.[[0123]])
 
338
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
339
    darwin1.*)
 
340
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
341
    darwin*)
 
342
      # if running on 10.5 or later, the deployment target defaults
 
343
      # to the OS version, if on x86, and 10.4, the deployment
 
344
      # target defaults to 10.4. Don't you love it?
 
345
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
346
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
347
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
348
   10.[[012]]*)
 
349
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
350
   10.*)
 
351
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
352
      esac
 
353
    ;;
 
354
  esac
 
355
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
356
      _lt_dar_single_mod='$single_module'
 
357
    fi
 
358
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
359
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
360
    else
 
361
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
362
    fi
 
363
    if test "$DSYMUTIL" != ":"; then
 
364
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
365
    else
 
366
      _lt_dsymutil=
 
367
    fi
 
368
    ;;
 
369
  esac
 
370
])
286
371
 
287
372
# _LT_AC_SYS_LIBPATH_AIX
288
373
# ----------------------
293
378
# If we don't find anything, use the default library path according
294
379
# to the aix ld manual.
295
380
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
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
 
}'`
 
381
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
382
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
383
lt_aix_libpath_sed='
 
384
    /Import File Strings/,/^$/ {
 
385
        /^0/ {
 
386
            s/^0  *\(.*\)$/\1/
 
387
            p
 
388
        }
 
389
    }'
 
390
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
391
# Check for a 64-bit object if we didn't find anything.
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],[])
 
392
if test -z "$aix_libpath"; then
 
393
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
394
fi],[])
302
395
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
396
])# _LT_AC_SYS_LIBPATH_AIX
304
397
 
529
622
  rm -rf conftest*
530
623
  ;;
531
624
 
532
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
625
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
626
s390*-*linux*|sparc*-*linux*)
533
627
  # Find out which ABI we are using.
534
628
  echo 'int i;' > conftest.$ac_ext
535
629
  if AC_TRY_EVAL(ac_compile); then
536
630
    case `/usr/bin/file conftest.o` in
537
631
    *32-bit*)
538
632
      case $host in
 
633
        x86_64-*kfreebsd*-gnu)
 
634
          LD="${LD-ld} -m elf_i386_fbsd"
 
635
          ;;
539
636
        x86_64-*linux*)
540
637
          LD="${LD-ld} -m elf_i386"
541
638
          ;;
552
649
      ;;
553
650
    *64-bit*)
554
651
      case $host in
 
652
        x86_64-*kfreebsd*-gnu)
 
653
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
654
          ;;
555
655
        x86_64-*linux*)
556
656
          LD="${LD-ld} -m elf_x86_64"
557
657
          ;;
592
692
    *64-bit*)
593
693
      case $lt_cv_prog_gnu_ld in
594
694
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
595
 
      *)    LD="${LD-ld} -64" ;;
 
695
      *)
 
696
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
697
          LD="${LD-ld} -64"
 
698
        fi
 
699
        ;;
596
700
      esac
597
701
      ;;
598
702
    esac
623
727
AC_CACHE_CHECK([$1], [$2],
624
728
  [$2=no
625
729
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
730
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
627
731
   lt_compiler_flag="$3"
628
732
   # Insert the option either (1) after the last *FLAGS variable, or
629
733
   # (2) before a word containing "conftest.", or (3) at the end.
664
768
# ------------------------------------------------------------
665
769
# Check whether the given compiler option works
666
770
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667
 
[AC_CACHE_CHECK([$1], [$2],
 
771
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
772
AC_CACHE_CHECK([$1], [$2],
668
773
  [$2=no
669
774
   save_LDFLAGS="$LDFLAGS"
670
775
   LDFLAGS="$LDFLAGS $3"
671
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
776
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
672
777
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673
778
     # The linker can only warn and ignore the option if not recognized
674
779
     # So say no if there are warnings
684
789
       $2=yes
685
790
     fi
686
791
   fi
687
 
   $rm conftest*
 
792
   $rm -r conftest*
688
793
   LDFLAGS="$save_LDFLAGS"
689
794
])
690
795
 
781
886
      lt_cv_sys_max_cmd_len=32768
782
887
    fi
783
888
    ;;
 
889
  sco3.2v5*)
 
890
    lt_cv_sys_max_cmd_len=102400
 
891
    ;;
 
892
  sysv5* | sco5v6* | sysv4.2uw2*)
 
893
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
894
    if test -n "$kargmax"; then
 
895
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
896
    else
 
897
      lt_cv_sys_max_cmd_len=32768
 
898
    fi
 
899
    ;;
784
900
  *)
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` \
 
901
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
902
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
903
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
904
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
905
    else
 
906
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
907
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
908
               = "XX$teststring") >/dev/null 2>&1 &&
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`
 
909
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
910
              lt_cv_sys_max_cmd_len=$new_result &&
 
911
              test $i != 17 # 1/2 MB should be enough
 
912
      do
 
913
        i=`expr $i + 1`
 
914
        teststring=$teststring$teststring
 
915
      done
 
916
      teststring=
 
917
      # Add a significant safety factor because C++ compilers can tack on massive
 
918
      # amounts of additional arguments before passing them to the linker.
 
919
      # It appears as though 1/2 is a usable value.
 
920
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
921
    fi
803
922
    ;;
804
923
  esac
805
924
])
952
1071
    AC_CHECK_FUNC([shl_load],
953
1072
          [lt_cv_dlopen="shl_load"],
954
1073
      [AC_CHECK_LIB([dld], [shl_load],
955
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1074
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
956
1075
        [AC_CHECK_FUNC([dlopen],
957
1076
              [lt_cv_dlopen="dlopen"],
958
1077
          [AC_CHECK_LIB([dl], [dlopen],
960
1079
            [AC_CHECK_LIB([svld], [dlopen],
961
1080
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
962
1081
              [AC_CHECK_LIB([dld], [dld_link],
963
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1082
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
964
1083
              ])
965
1084
            ])
966
1085
          ])
1026
1145
# ---------------------------------
1027
1146
# Check to see if options -c and -o are simultaneously supported by compiler
1028
1147
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1148
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1149
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030
1150
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031
1151
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032
1152
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1034
1154
   mkdir conftest
1035
1155
   cd conftest
1036
1156
   mkdir out
1037
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1157
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1038
1158
 
1039
1159
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1040
1160
   # Insert the option either (1) after the last *FLAGS variable, or
1174
1294
   darwin*)
1175
1295
       if test -n "$STRIP" ; then
1176
1296
         striplib="$STRIP -x"
 
1297
         old_striplib="$STRIP -S"
1177
1298
         AC_MSG_RESULT([yes])
1178
1299
       else
1179
1300
  AC_MSG_RESULT([no])
1191
1312
# -----------------------------
1192
1313
# PORTME Fill in your ld.so characteristics
1193
1314
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1194
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1315
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1316
AC_MSG_CHECKING([dynamic linker characteristics])
1195
1317
library_names_spec=
1196
1318
libname_spec='lib$name'
1197
1319
soname_spec=
1205
1327
version_type=none
1206
1328
dynamic_linker="$host_os ld.so"
1207
1329
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1330
m4_if($1,[],[
1208
1331
if test "$GCC" = yes; 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
 
1332
  case $host_os in
 
1333
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1334
    *) lt_awk_arg="/^libraries:/" ;;
 
1335
  esac
 
1336
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1337
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1338
    # if the path contains ";" then we assume it to be the separator
1212
1339
    # otherwise default to the standard path separator (i.e. ":") - it is
1213
1340
    # assumed that no part of a normal pathname contains ";" but that should
1214
1341
    # okay in the real world where ";" in dirpaths is itself problematic.
1215
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1342
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1216
1343
  else
1217
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1344
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1218
1345
  fi
 
1346
  # Ok, now we have the path, separated by spaces, we can step through it
 
1347
  # and add multilib dir if necessary.
 
1348
  lt_tmp_lt_search_path_spec=
 
1349
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1350
  for lt_sys_path in $lt_search_path_spec; do
 
1351
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1352
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1353
    else
 
1354
      test -d "$lt_sys_path" && \
 
1355
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1356
    fi
 
1357
  done
 
1358
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1359
BEGIN {RS=" "; FS="/|\n";} {
 
1360
  lt_foo="";
 
1361
  lt_count=0;
 
1362
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1363
    if ($lt_i != "" && $lt_i != ".") {
 
1364
      if ($lt_i == "..") {
 
1365
        lt_count++;
 
1366
      } else {
 
1367
        if (lt_count == 0) {
 
1368
          lt_foo="/" $lt_i lt_foo;
 
1369
        } else {
 
1370
          lt_count--;
 
1371
        }
 
1372
      }
 
1373
    }
 
1374
  }
 
1375
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1376
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1377
}'`
 
1378
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1219
1379
else
1220
1380
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1221
 
fi
 
1381
fi])
1222
1382
need_lib_prefix=unknown
1223
1383
hardcode_into_libs=no
1224
1384
 
1236
1396
  soname_spec='${libname}${release}${shared_ext}$major'
1237
1397
  ;;
1238
1398
 
1239
 
aix4* | aix5*)
 
1399
aix[[4-9]]*)
1240
1400
  version_type=linux
1241
1401
  need_lib_prefix=no
1242
1402
  need_version=no
1375
1535
  shlibpath_overrides_runpath=yes
1376
1536
  shlibpath_var=DYLD_LIBRARY_PATH
1377
1537
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
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
 
1538
  m4_if([$1], [],[
 
1539
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1384
1540
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1385
1541
  ;;
1386
1542
 
1434
1590
    shlibpath_overrides_runpath=no
1435
1591
    hardcode_into_libs=yes
1436
1592
    ;;
1437
 
  freebsd*) # from 4.6 on
 
1593
  *) # from 4.6 on, and DragonFly
1438
1594
    shlibpath_overrides_runpath=yes
1439
1595
    hardcode_into_libs=yes
1440
1596
    ;;
1497
1653
  postinstall_cmds='chmod 555 $lib'
1498
1654
  ;;
1499
1655
 
 
1656
interix[[3-9]]*)
 
1657
  version_type=linux
 
1658
  need_lib_prefix=no
 
1659
  need_version=no
 
1660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1661
  soname_spec='${libname}${release}${shared_ext}$major'
 
1662
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1663
  shlibpath_var=LD_LIBRARY_PATH
 
1664
  shlibpath_overrides_runpath=no
 
1665
  hardcode_into_libs=yes
 
1666
  ;;
 
1667
 
1500
1668
interix3*)
1501
1669
  version_type=linux
1502
1670
  need_lib_prefix=no
1568
1736
 
1569
1737
  # Append ld.so.conf contents to the search path
1570
1738
  if test -f /etc/ld.so.conf; then
1571
 
    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' ' '`
 
1739
    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' ' '`
1572
1740
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1573
1741
  fi
1574
1742
 
1595
1763
 
1596
1764
netbsd*)
1597
1765
  version_type=sunos
 
1766
  sys_lib_dlsearch_path_spec="/usr/lib"
1598
1767
  need_lib_prefix=no
1599
1768
  need_version=no
1600
1769
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1674
1843
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1675
1844
  ;;
1676
1845
 
 
1846
rdos*)
 
1847
  dynamic_linker=no
 
1848
  ;;
 
1849
 
1677
1850
solaris*)
1678
1851
  version_type=linux
1679
1852
  need_lib_prefix=no
1755
1928
  sys_lib_dlsearch_path_spec='/usr/lib'
1756
1929
  ;;
1757
1930
 
 
1931
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1932
  version_type=freebsd-elf
 
1933
  need_lib_prefix=no
 
1934
  need_version=no
 
1935
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1936
  soname_spec='${libname}${release}${shared_ext}$major'
 
1937
  shlibpath_var=LD_LIBRARY_PATH
 
1938
  hardcode_into_libs=yes
 
1939
  if test "$with_gnu_ld" = yes; then
 
1940
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1941
    shlibpath_overrides_runpath=no
 
1942
  else
 
1943
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1944
    shlibpath_overrides_runpath=yes
 
1945
    case $host_os in
 
1946
      sco3.2v5*)
 
1947
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1948
        ;;
 
1949
    esac
 
1950
  fi
 
1951
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1952
  ;;
 
1953
 
1758
1954
uts4*)
1759
1955
  version_type=linux
1760
1956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1769
1965
AC_MSG_RESULT([$dynamic_linker])
1770
1966
test "$dynamic_linker" = no && can_build_shared=no
1771
1967
 
 
1968
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1969
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1970
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1971
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1972
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1973
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1974
 
1772
1975
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1773
1976
if test "$GCC" = yes; then
1774
1977
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1779
1982
# _LT_AC_TAGCONFIG
1780
1983
# ----------------
1781
1984
AC_DEFUN([_LT_AC_TAGCONFIG],
1782
 
[AC_ARG_WITH([tags],
 
1985
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1986
AC_ARG_WITH([tags],
1783
1987
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1784
1988
        [include additional configurations @<:@automatic@:>@])],
1785
1989
    [tagnames="$withval"])
1788
1992
  if test ! -f "${ofile}"; then
1789
1993
    AC_MSG_WARN([output file `$ofile' does not exist])
1790
1994
  fi
 
1995
  if test -z "$LTCFLAGS"; then
 
1996
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1997
  fi
1791
1998
 
1792
1999
  if test -z "$LTCC"; then
1793
2000
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2040
2247
 
2041
2248
# AC_PATH_TOOL_PREFIX
2042
2249
# -------------------
2043
 
# find a file program which can recognise shared library
 
2250
# find a file program which can recognize shared library
2044
2251
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2045
2252
[AC_REQUIRE([AC_PROG_EGREP])dnl
2046
2253
AC_MSG_CHECKING([for $1])
2103
2310
 
2104
2311
# AC_PATH_MAGIC
2105
2312
# -------------
2106
 
# find a file program which can recognise a shared library
 
2313
# find a file program which can recognize a shared library
2107
2314
AC_DEFUN([AC_PATH_MAGIC],
2108
2315
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2109
2316
if test -z "$lt_cv_path_MAGIC_CMD"; then
2250
2457
# how to check for library dependencies
2251
2458
#  -- PORTME fill in with the dynamic library characteristics
2252
2459
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2253
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2460
[AC_CACHE_CHECK([how to recognize dependent libraries],
2254
2461
lt_cv_deplibs_check_method,
2255
2462
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2256
2463
lt_cv_file_magic_test_file=
2267
2474
# whether `pass_all' will *always* work, you probably want this one.
2268
2475
 
2269
2476
case $host_os in
2270
 
aix4* | aix5*)
 
2477
aix[[4-9]]*)
2271
2478
  lt_cv_deplibs_check_method=pass_all
2272
2479
  ;;
2273
2480
 
2289
2496
 
2290
2497
mingw* | pw32*)
2291
2498
  # Base MSYS/MinGW do not provide the 'file' command needed by
2292
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2293
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2294
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2499
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2500
  # unless we find 'file', for example because we are cross-compiling.
 
2501
  if ( file / ) >/dev/null 2>&1; then
 
2502
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2503
    lt_cv_file_magic_cmd='func_win32_libid'
 
2504
  else
 
2505
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2506
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2507
  fi
2295
2508
  ;;
2296
2509
 
2297
2510
darwin* | rhapsody*)
2336
2549
  esac
2337
2550
  ;;
2338
2551
 
 
2552
interix[[3-9]]*)
 
2553
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2554
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2555
  ;;
 
2556
 
2339
2557
interix3*)
2340
2558
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2341
2559
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2386
2604
  lt_cv_deplibs_check_method=pass_all
2387
2605
  ;;
2388
2606
 
 
2607
rdos*)
 
2608
  lt_cv_deplibs_check_method=pass_all
 
2609
  ;;
 
2610
 
2389
2611
solaris*)
2390
2612
  lt_cv_deplibs_check_method=pass_all
2391
2613
  ;;
2438
2660
  lt_cv_path_NM="$NM"
2439
2661
else
2440
2662
  lt_nm_to_check="${ac_tool_prefix}nm"
2441
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2663
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2442
2664
    lt_nm_to_check="$lt_nm_to_check nm"
2443
2665
  fi
2444
2666
  for lt_tmp_nm in $lt_nm_to_check; do
2654
2876
_LT_AC_TAGVAR(objext, $1)=$objext
2655
2877
 
2656
2878
# Code to be used in simple compile tests
2657
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2879
lt_simple_compile_test_code="int some_variable = 0;"
2658
2880
 
2659
2881
# Code to be used in simple link tests
2660
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2882
lt_simple_link_test_code='int main(){return(0);}'
2661
2883
 
2662
2884
_LT_AC_SYS_COMPILER
2663
2885
 
2693
2915
  fi
2694
2916
  ;;
2695
2917
 
2696
 
aix4* | aix5*)
 
2918
aix[[4-9]]*)
2697
2919
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2698
2920
    test "$enable_shared" = yes && enable_static=no
2699
2921
  fi
2750
2972
_LT_AC_TAGVAR(predeps, $1)=
2751
2973
_LT_AC_TAGVAR(postdeps, $1)=
2752
2974
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2975
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2753
2976
 
2754
2977
# Source file extension for C++ test sources.
2755
2978
ac_ext=cpp
2759
2982
_LT_AC_TAGVAR(objext, $1)=$objext
2760
2983
 
2761
2984
# Code to be used in simple compile tests
2762
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2985
lt_simple_compile_test_code="int some_variable = 0;"
2763
2986
 
2764
2987
# Code to be used in simple link tests
2765
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2988
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2766
2989
 
2767
2990
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2768
2991
_LT_AC_SYS_COMPILER
2859
3082
    # FIXME: insert proper C++ library support
2860
3083
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2861
3084
    ;;
2862
 
  aix4* | aix5*)
 
3085
  aix[[4-9]]*)
2863
3086
    if test "$host_cpu" = ia64; then
2864
3087
      # On IA64, the linker does run time linking by default, so we don't
2865
3088
      # have to do anything special.
2872
3095
      # Test if we are trying to use run time linking or normal
2873
3096
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2874
3097
      # need to do runtime linking.
2875
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3098
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2876
3099
        for ld_flag in $LDFLAGS; do
2877
3100
          case $ld_flag in
2878
3101
          *-brtl*)
2908
3131
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2909
3132
        then
2910
3133
          # We have reworked collect2
2911
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3134
          :
2912
3135
        else
2913
3136
          # We have old collect2
2914
3137
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3018
3241
    fi
3019
3242
  ;;
3020
3243
      darwin* | rhapsody*)
3021
 
        case $host_os in
3022
 
        rhapsody* | darwin1.[[012]])
3023
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3024
 
         ;;
3025
 
       *) # Darwin 1.3 on
3026
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3027
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3028
 
         else
3029
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3030
 
             10.[[012]])
3031
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3032
 
               ;;
3033
 
             10.*)
3034
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3035
 
               ;;
3036
 
           esac
3037
 
         fi
3038
 
         ;;
3039
 
        esac
3040
3244
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3041
3245
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3042
3246
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3043
3247
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3044
3248
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3045
3249
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3046
 
 
3047
 
    if test "$GXX" = yes ; then
3048
 
      lt_int_apple_cc_single_mod=no
 
3250
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3251
      if test "$GXX" = yes ; then
3049
3252
      output_verbose_link_cmd='echo'
3050
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3051
 
       lt_int_apple_cc_single_mod=yes
 
3253
      _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}"
 
3254
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3255
      _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}"
 
3256
      _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}"
 
3257
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3258
        _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}"
 
3259
        _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}"
3052
3260
      fi
3053
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3054
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3055
 
      else
3056
 
          _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'
3057
 
        fi
3058
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3059
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3060
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3061
 
            _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}'
3062
 
          else
3063
 
            _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}'
3064
 
          fi
3065
 
            _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}'
3066
3261
      else
3067
3262
      case $cc_basename in
3068
3263
        xlc*)
3069
3264
         output_verbose_link_cmd='echo'
3070
 
          _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'
 
3265
          _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'
3071
3266
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072
3267
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3073
 
          _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}'
 
3268
          _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}'
3074
3269
          _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}'
3075
3270
          ;;
3076
3271
       *)
3153
3348
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3154
3349
 
3155
3350
      case $host_cpu in
3156
 
      hppa*64*|ia64*)
3157
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3158
 
        ;;
 
3351
      hppa*64*|ia64*) ;;
3159
3352
      *)
3160
3353
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3161
3354
        ;;
3223
3416
        ;;
3224
3417
    esac
3225
3418
    ;;
3226
 
  interix3*)
 
3419
  interix[[3-9]]*)
3227
3420
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3228
3421
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229
3422
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3315
3508
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3316
3509
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3317
3510
        ;;
3318
 
      pgCC*)
 
3511
      pgCC* | pgcpp*)
3319
3512
        # Portland Group C++ compiler
3320
3513
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3321
3514
        _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'
3343
3536
        # dependencies.
3344
3537
        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'
3345
3538
        ;;
 
3539
      *)
 
3540
        case `$CC -V 2>&1 | sed 5q` in
 
3541
        *Sun\ C*)
 
3542
          # Sun C++ 5.9
 
3543
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3544
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3545
          _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'
 
3546
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3547
          _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'
 
3548
 
 
3549
          # Not sure whether something based on
 
3550
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3551
          # would be better.
 
3552
          output_verbose_link_cmd='echo'
 
3553
 
 
3554
          # Archives containing C++ object files must be created using
 
3555
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3556
          # necessary to make sure instantiated templates are included
 
3557
          # in the archive.
 
3558
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3559
          ;;
 
3560
        esac
 
3561
        ;;
3346
3562
    esac
3347
3563
    ;;
3348
3564
  lynxos*)
3381
3597
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3382
3598
    ;;
3383
3599
  openbsd*)
3384
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3385
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3386
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3387
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3388
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3389
 
      _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'
3390
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3391
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3600
    if test -f /usr/libexec/ld.so; then
 
3601
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3602
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3603
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3604
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3605
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3606
        _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'
 
3607
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3608
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3609
      fi
 
3610
      output_verbose_link_cmd='echo'
 
3611
    else
 
3612
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3392
3613
    fi
3393
 
    output_verbose_link_cmd='echo'
3394
3614
    ;;
3395
3615
  osf3*)
3396
3616
    case $cc_basename in
3552
3772
        case $host_os in
3553
3773
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3554
3774
          *)
3555
 
            # The C++ compiler is used as linker so we must use $wl
3556
 
            # flag to pass the commands to the underlying system
3557
 
            # linker. We must also pass each convience library through
3558
 
            # to the system linker between allextract/defaultextract.
3559
 
            # The C++ compiler will combine linker options so we
3560
 
            # cannot just pass the convience library names through
3561
 
            # without $wl.
 
3775
            # The compiler driver will combine and reorder linker options,
 
3776
            # but understands `-z linker_flag'.
3562
3777
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3563
 
            _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'
 
3778
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3564
3779
            ;;
3565
3780
        esac
3566
3781
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3607
3822
          fi
3608
3823
 
3609
3824
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3825
          case $host_os in
 
3826
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3827
          *)
 
3828
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3829
            ;;
 
3830
          esac
3610
3831
        fi
3611
3832
        ;;
3612
3833
    esac
3722
3943
# compiler output when linking a shared library.
3723
3944
# Parse the compiler output and extract the necessary
3724
3945
# objects, libraries and library flags.
3725
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3946
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3947
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3726
3948
dnl we can't use the lt_simple_compile_test_code here,
3727
3949
dnl because it contains code intended for an executable,
3728
3950
dnl not a library.  It's possible we should let each
3847
4069
 
3848
4070
$rm -f confest.$objext
3849
4071
 
 
4072
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4073
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4074
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4075
fi
 
4076
 
3850
4077
# PORTME: override above test on systems where it is broken
3851
4078
ifelse([$1],[CXX],
3852
4079
[case $host_os in
3853
 
interix3*)
 
4080
interix[[3-9]]*)
3854
4081
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3855
4082
  # hack all around it, let's just trust "g++" to DTRT.
3856
4083
  _LT_AC_TAGVAR(predep_objects,$1)=
3858
4085
  _LT_AC_TAGVAR(postdeps,$1)=
3859
4086
  ;;
3860
4087
 
 
4088
linux*)
 
4089
  case `$CC -V 2>&1 | sed 5q` in
 
4090
  *Sun\ C*)
 
4091
    # Sun C++ 5.9
 
4092
    #
 
4093
    # The more standards-conforming stlport4 library is
 
4094
    # incompatible with the Cstd library. Avoid specifying
 
4095
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4096
    # -library=stlport4 depends on it.
 
4097
    case " $CXX $CXXFLAGS " in
 
4098
    *" -library=stlport4 "*)
 
4099
      solaris_use_stlport4=yes
 
4100
      ;;
 
4101
    esac
 
4102
    if test "$solaris_use_stlport4" != yes; then
 
4103
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4104
    fi
 
4105
    ;;
 
4106
  esac
 
4107
  ;;
 
4108
 
3861
4109
solaris*)
3862
4110
  case $cc_basename in
3863
4111
  CC*)
 
4112
    # The more standards-conforming stlport4 library is
 
4113
    # incompatible with the Cstd library. Avoid specifying
 
4114
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4115
    # -library=stlport4 depends on it.
 
4116
    case " $CXX $CXXFLAGS " in
 
4117
    *" -library=stlport4 "*)
 
4118
      solaris_use_stlport4=yes
 
4119
      ;;
 
4120
    esac
 
4121
 
3864
4122
    # Adding this requires a known-good setup of shared libraries for
3865
4123
    # Sun compiler versions before 5.6, else PIC objects from an old
3866
4124
    # archive will be linked into the output, leading to subtle bugs.
3867
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4125
    if test "$solaris_use_stlport4" != yes; then
 
4126
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4127
    fi
3868
4128
    ;;
3869
4129
  esac
3870
4130
  ;;
3871
4131
esac
3872
4132
])
3873
 
 
3874
4133
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3875
4134
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3876
4135
esac
3896
4155
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3897
4156
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3898
4157
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
4158
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3899
4159
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3900
4160
_LT_AC_TAGVAR(module_cmds, $1)=
3901
4161
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3913
4173
_LT_AC_TAGVAR(objext, $1)=$objext
3914
4174
 
3915
4175
# Code to be used in simple compile tests
3916
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4176
lt_simple_compile_test_code="\
 
4177
      subroutine t
 
4178
      return
 
4179
      end
 
4180
"
3917
4181
 
3918
4182
# Code to be used in simple link tests
3919
 
lt_simple_link_test_code="      program t\n      end\n"
 
4183
lt_simple_link_test_code="\
 
4184
      program t
 
4185
      end
 
4186
"
3920
4187
 
3921
4188
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3922
4189
_LT_AC_SYS_COMPILER
3948
4215
    postinstall_cmds='$RANLIB $lib'
3949
4216
  fi
3950
4217
  ;;
3951
 
aix4* | aix5*)
 
4218
aix[[4-9]]*)
3952
4219
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3953
4220
    test "$enable_shared" = yes && enable_static=no
3954
4221
  fi
3995
4262
_LT_AC_TAGVAR(objext, $1)=$objext
3996
4263
 
3997
4264
# Code to be used in simple compile tests
3998
 
lt_simple_compile_test_code="class foo {}\n"
 
4265
lt_simple_compile_test_code="class foo {}"
3999
4266
 
4000
4267
# Code to be used in simple link tests
4001
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4268
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4002
4269
 
4003
4270
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4004
4271
_LT_AC_SYS_COMPILER
4051
4318
_LT_AC_TAGVAR(objext, $1)=$objext
4052
4319
 
4053
4320
# Code to be used in simple compile tests
4054
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4321
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4055
4322
 
4056
4323
# Code to be used in simple link tests
4057
4324
lt_simple_link_test_code="$lt_simple_compile_test_code"
4125
4392
    _LT_AC_TAGVAR(predeps, $1) \
4126
4393
    _LT_AC_TAGVAR(postdeps, $1) \
4127
4394
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4395
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4128
4396
    _LT_AC_TAGVAR(archive_cmds, $1) \
4129
4397
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4130
4398
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4140
4408
    _LT_AC_TAGVAR(module_cmds, $1) \
4141
4409
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4142
4410
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4411
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4143
4412
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4144
4413
    _LT_AC_TAGVAR(include_expsyms, $1); do
4145
4414
 
4186
4455
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4187
4456
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4188
4457
#
4189
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4458
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4190
4459
# Free Software Foundation, Inc.
4191
4460
#
4192
4461
# This file is part of GNU Libtool:
4270
4539
# LTCC compiler flags.
4271
4540
LTCFLAGS=$lt_LTCFLAGS
4272
4541
 
 
4542
# LTCC compiler flags.
 
4543
LTCFLAGS=$lt_LTCFLAGS
 
4544
 
4273
4545
# A language-specific compiler.
4274
4546
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4275
4547
 
4423
4695
# shared library.
4424
4696
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4425
4697
 
 
4698
# The directories searched by this compiler when creating a shared
 
4699
# library
 
4700
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4701
 
4426
4702
# The library search path used internally by the compiler when linking
4427
4703
# a shared library.
4428
4704
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4511
4787
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4512
4788
 
4513
4789
# Fix the shell variable \$srcfile for the compiler.
4514
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4790
fix_srcfile_path=$lt_fix_srcfile_path
4515
4791
 
4516
4792
# Set to yes if exported symbols are required.
4517
4793
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4594
4870
# ---------------------------------
4595
4871
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4596
4872
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4873
AC_REQUIRE([LT_AC_PROG_SED])
4597
4874
AC_REQUIRE([AC_PROG_NM])
4598
4875
AC_REQUIRE([AC_OBJEXT])
4599
4876
# Check for command to grab the raw symbol name followed by C symbol from nm.
4771
5048
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4772
5049
    cat conftest.$ac_ext >&5
4773
5050
  fi
4774
 
  rm -f conftest* conftst*
 
5051
  rm -rf conftest* conftst*
4775
5052
 
4776
5053
  # Do not use the global_symbol_pipe unless it works.
4777
5054
  if test "$pipe_works" = yes; then
4820
5097
      # like `-m68040'.
4821
5098
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4822
5099
      ;;
4823
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5100
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4824
5101
      # PIC is the default for these OSes.
4825
5102
      ;;
4826
 
    mingw* | os2* | pw32*)
 
5103
    mingw* | cygwin* | os2* | pw32*)
4827
5104
      # This hack is so that the source file can tell whether it is being
4828
5105
      # built for inclusion in a dll (and should export symbols for example).
4829
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5106
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5107
      # (--disable-auto-import) libraries
 
5108
      m4_if([$1], [GCJ], [],
 
5109
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4830
5110
      ;;
4831
5111
    darwin* | rhapsody*)
4832
5112
      # PIC is the default on this platform
4837
5117
      # DJGPP does not support shared libraries at all
4838
5118
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4839
5119
      ;;
 
5120
    interix[[3-9]]*)
 
5121
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5122
      # Instead, we relocate shared libraries at runtime.
 
5123
      ;;
4840
5124
    interix3*)
4841
5125
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4842
5126
      # Instead, we relocate shared libraries at runtime.
4863
5147
    esac
4864
5148
  else
4865
5149
    case $host_os in
4866
 
      aix4* | aix5*)
 
5150
      aix[[4-9]]*)
4867
5151
        # All AIX code is PIC.
4868
5152
        if test "$host_cpu" = ia64; then
4869
5153
          # AIX 5 now supports IA64 processor
4935
5219
        # This is c89, which is MS Visual C++ (no shared libs)
4936
5220
        # Anyone wants to do a port?
4937
5221
        ;;
 
5222
      interix*)
 
5223
        # This is c89, which is MS Visual C++ (no shared libs)
 
5224
        # Anyone wants to do a port?
 
5225
        ;;
4938
5226
      irix5* | irix6* | nonstopux*)
4939
5227
        case $cc_basename in
4940
5228
          CC*)
4959
5247
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4960
5248
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4961
5249
            ;;
4962
 
          pgCC*)
 
5250
          pgCC* | pgcpp*)
4963
5251
            # Portland Group C++ compiler.
4964
5252
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4965
5253
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4973
5261
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4974
5262
            ;;
4975
5263
          *)
 
5264
            case `$CC -V 2>&1 | sed 5q` in
 
5265
            *Sun\ C*)
 
5266
              # Sun C++ 5.9
 
5267
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5268
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5269
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5270
              ;;
 
5271
            esac
4976
5272
            ;;
4977
5273
        esac
4978
5274
        ;;
5093
5389
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5094
5390
      ;;
5095
5391
 
5096
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5392
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5097
5393
      # PIC is the default for these OSes.
5098
5394
      ;;
5099
5395
 
5100
 
    mingw* | pw32* | os2*)
 
5396
    mingw* | cygwin* | pw32* | os2*)
5101
5397
      # This hack is so that the source file can tell whether it is being
5102
5398
      # built for inclusion in a dll (and should export symbols for example).
5103
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5399
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5400
      # (--disable-auto-import) libraries
 
5401
      m4_if([$1], [GCJ], [],
 
5402
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5104
5403
      ;;
5105
5404
 
5106
5405
    darwin* | rhapsody*)
5109
5408
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5110
5409
      ;;
5111
5410
 
 
5411
    interix[[3-9]]*)
 
5412
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5413
      # Instead, we relocate shared libraries at runtime.
 
5414
      ;;
 
5415
 
5112
5416
    interix3*)
5113
5417
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5114
5418
      # Instead, we relocate shared libraries at runtime.
5167
5471
       esac
5168
5472
       ;;
5169
5473
 
5170
 
    mingw* | pw32* | os2*)
 
5474
    mingw* | cygwin* | pw32* | os2*)
5171
5475
      # This hack is so that the source file can tell whether it is being
5172
5476
      # built for inclusion in a dll (and should export symbols for example).
5173
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5477
      m4_if([$1], [GCJ], [],
 
5478
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5174
5479
      ;;
5175
5480
 
5176
5481
    hpux9* | hpux10* | hpux11*)
5219
5524
        # All Alpha code is PIC.
5220
5525
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5221
5526
        ;;
 
5527
      *)
 
5528
        case `$CC -V 2>&1 | sed 5q` in
 
5529
        *Sun\ C*)
 
5530
          # Sun C 5.9
 
5531
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5532
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5533
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5534
          ;;
 
5535
        *Sun\ F*)
 
5536
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5537
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5538
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5539
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5540
          ;;
 
5541
        esac
 
5542
        ;;
5222
5543
      esac
5223
5544
      ;;
5224
5545
 
5228
5549
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5229
5550
      ;;
5230
5551
 
 
5552
    rdos*)
 
5553
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5554
      ;;
 
5555
 
5231
5556
    solaris*)
5232
5557
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5233
5558
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5264
5589
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5265
5590
      ;;
5266
5591
 
 
5592
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5593
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5594
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5595
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5596
      ;;
 
5597
 
5267
5598
    unicos*)
5268
5599
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5269
5600
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5287
5618
#
5288
5619
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5289
5620
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5290
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5621
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5291
5622
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5292
5623
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5293
5624
     "" | " "*) ;;
5311
5642
#
5312
5643
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5313
5644
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5314
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5645
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5315
5646
  $lt_tmp_static_flag,
5316
5647
  [],
5317
5648
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5322
5653
# ------------------------------------
5323
5654
# See if the linker supports building shared libraries.
5324
5655
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5325
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5656
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5657
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5326
5658
ifelse([$1],[CXX],[
5327
5659
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5328
5660
  case $host_os in
5329
 
  aix4* | aix5*)
 
5661
  aix[[4-9]]*)
5330
5662
    # If we're using GNU nm, then we don't want the "-C" option.
5331
5663
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5332
5664
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5339
5671
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5340
5672
  ;;
5341
5673
  cygwin* | mingw*)
5342
 
    _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'
 
5674
    _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'
5343
5675
  ;;
5344
5676
  linux* | k*bsd*-gnu)
5345
5677
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5348
5680
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5349
5681
  ;;
5350
5682
  esac
 
5683
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5351
5684
],[
5352
5685
  runpath_var=
5353
5686
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5378
5711
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5379
5712
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5380
5713
  # as well as any symbol that contains `d'.
5381
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5714
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5382
5715
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5383
5716
  # platforms (ab)use it in PIC code, but their linkers get confused if
5384
5717
  # the symbol is explicitly referenced.  Since portable code cannot
5385
5718
  # rely on this symbol name, it's probably fine to never include it in
5386
5719
  # preloaded symbol tables.
 
5720
  # Exclude shared library initialization/finalization symbols.
 
5721
dnl Note also adjust exclude_expsyms for C++ above.
5387
5722
  extract_expsyms_cmds=
5388
5723
  # Just being paranoid about ensuring that cc_basename is set.
5389
5724
  _LT_CC_BASENAME([$compiler])
5433
5768
 
5434
5769
    # See if GNU ld supports shared libraries.
5435
5770
    case $host_os in
5436
 
    aix3* | aix4* | aix5*)
 
5771
    aix[[3-9]]*)
5437
5772
      # On AIX/PPC, the GNU linker is very broken
5438
5773
      if test "$host_cpu" != ia64; then
5439
5774
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5481
5816
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5482
5817
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5483
5818
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5484
 
      _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'
 
5819
      _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'
5485
5820
 
5486
5821
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5487
5822
        _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'
5499
5834
      fi
5500
5835
      ;;
5501
5836
 
5502
 
    interix3*)
 
5837
    interix[[3-9]]*)
5503
5838
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5504
5839
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5505
5840
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5514
5849
      _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'
5515
5850
      ;;
5516
5851
 
5517
 
    linux* | k*bsd*-gnu)
 
5852
    gnu* | linux* | k*bsd*-gnu)
5518
5853
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5519
5854
        tmp_addflag=
5520
5855
        case $cc_basename,$host_cpu in
5532
5867
        ifc* | ifort*)                  # Intel Fortran compiler
5533
5868
          tmp_addflag=' -nofor_main' ;;
5534
5869
        esac
5535
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5870
        case `$CC -V 2>&1 | sed 5q` in
 
5871
        *Sun\ C*)                       # Sun C 5.9
 
5872
          _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'
 
5873
          tmp_sharedflag='-G' ;;
 
5874
        *Sun\ F*)                       # Sun Fortran 8.3
 
5875
          tmp_sharedflag='-G' ;;
 
5876
        *)
 
5877
          tmp_sharedflag='-shared' ;;
 
5878
        esac
 
5879
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536
5880
 
5537
5881
        if test $supports_anon_versioning = yes; then
5538
5882
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539
5883
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540
5884
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5541
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5885
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5542
5886
        fi
5543
5887
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5544
5888
      else
5579
5923
 
5580
5924
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5581
5925
      case `$LD -v 2>&1` in
5582
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5926
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5583
5927
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5584
5928
        cat <<_LT_EOF 1>&2
5585
5929
 
5644
5988
      fi
5645
5989
      ;;
5646
5990
 
5647
 
    aix4* | aix5*)
 
5991
    aix[[4-9]]*)
5648
5992
      if test "$host_cpu" = ia64; then
5649
5993
        # On IA64, the linker does run time linking by default, so we don't
5650
5994
        # have to do anything special.
5664
6008
        # Test if we are trying to use run time linking or normal
5665
6009
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5666
6010
        # need to do runtime linking.
5667
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6011
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5668
6012
          for ld_flag in $LDFLAGS; do
5669
6013
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5670
6014
            aix_use_runtimelinking=yes
5698
6042
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5699
6043
          then
5700
6044
          # We have reworked collect2
5701
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6045
          :
5702
6046
          else
5703
6047
          # We have old collect2
5704
6048
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5791
6135
      # The linker will automatically build a .lib file if we build a DLL.
5792
6136
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5793
6137
      # FIXME: Should let the user specify the lib program.
5794
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6138
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5795
6139
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5796
6140
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5797
6141
      ;;
5824
6168
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5825
6169
    if test "$GCC" = yes ; then
5826
6170
        output_verbose_link_cmd='echo'
5827
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5828
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5829
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5830
 
      _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}'
5831
 
      _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}'
 
6171
        _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}"
 
6172
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6173
        _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}"
 
6174
        _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}"
5832
6175
    else
5833
6176
      case $cc_basename in
5834
6177
        xlc*)
5835
6178
         output_verbose_link_cmd='echo'
5836
 
         _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'
 
6179
         _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'
5837
6180
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838
6181
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5839
 
         _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}'
 
6182
         _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}'
5840
6183
          _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}'
5841
6184
          ;;
5842
6185
       *)
5998
6341
      ;;
5999
6342
 
6000
6343
    openbsd*)
6001
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6002
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6003
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6004
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6005
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6006
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6007
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6344
      if test -f /usr/libexec/ld.so; then
 
6345
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6346
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6347
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6348
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6349
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6350
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6351
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6352
        else
 
6353
          case $host_os in
 
6354
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6355
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6356
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6357
             ;;
 
6358
           *)
 
6359
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6360
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6361
             ;;
 
6362
          esac
 
6363
        fi
6008
6364
      else
6009
 
       case $host_os in
6010
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6011
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6012
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6013
 
           ;;
6014
 
         *)
6015
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6016
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6017
 
           ;;
6018
 
       esac
 
6365
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6019
6366
      fi
6020
6367
      ;;
6021
6368
 
6074
6421
      case $host_os in
6075
6422
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6076
6423
      *)
6077
 
        # The compiler driver will combine linker options so we
6078
 
        # cannot just pass the convience library names through
6079
 
        # without $wl, iff we do not link with $LD.
6080
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6424
        # The compiler driver will combine and reorder linker options,
 
6425
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6426
        # but is careful enough not to reorder.
6081
6427
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6082
 
        case $wlarc in
6083
 
        '')
6084
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6085
 
        *)
6086
 
          _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' ;;
6087
 
        esac ;;
 
6428
        if test "$GCC" = yes; then
 
6429
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6430
        else
 
6431
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6432
        fi
 
6433
        ;;
6088
6434
      esac
6089
6435
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6090
6436
      ;;
6141
6487
      fi
6142
6488
      ;;
6143
6489
 
6144
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6490
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6145
6491
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6146
6492
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6147
6493
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6216
6562
      # to ld, don't add -lc before -lgcc.
6217
6563
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6218
6564
      $rm conftest*
6219
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6565
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6220
6566
 
6221
6567
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6222
6568
        soname=conftest
6319
6665
[AC_CHECK_TOOL(RC, windres, no)
6320
6666
])
6321
6667
 
 
6668
 
 
6669
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6670
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6671
 
 
6672
# _AS_TEST_PREPARE
 
6673
# ----------------
 
6674
m4_ifndef([_AS_TEST_PREPARE],
 
6675
[m4_defun([_AS_TEST_PREPARE],
 
6676
[if test -x / >/dev/null 2>&1; then
 
6677
  as_executable_p='test -x'
 
6678
else
 
6679
  as_executable_p='test -f'
 
6680
fi
 
6681
])])# _AS_TEST_PREPARE
 
6682
 
 
6683
# AS_EXECUTABLE_P
 
6684
# ---------------
 
6685
# Check whether a file is executable.
 
6686
m4_ifndef([AS_EXECUTABLE_P],
 
6687
[m4_defun([AS_EXECUTABLE_P],
 
6688
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6689
$as_executable_p $1[]dnl
 
6690
])])# AS_EXECUTABLE_P
 
6691
 
6322
6692
# NOTE: This macro has been submitted for inclusion into   #
6323
6693
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6324
6694
#  a released version of Autoconf we should remove this    #
6339
6709
  test -z "$as_dir" && as_dir=.
6340
6710
  for lt_ac_prog in sed gsed; do
6341
6711
    for ac_exec_ext in '' $ac_executable_extensions; do
6342
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6712
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6343
6713
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6344
6714
      fi
6345
6715
    done
6346
6716
  done
6347
6717
done
 
6718
IFS=$as_save_IFS
6348
6719
lt_ac_max=0
6349
6720
lt_ac_count=0
6350
6721
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6377
6748
done
6378
6749
])
6379
6750
SED=$lt_cv_path_SED
 
6751
AC_SUBST([SED])
6380
6752
AC_MSG_RESULT([$SED])
6381
6753
])
6382
6754
 
6383
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6755
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6384
6756
#
6385
6757
# This file is free software; the Free Software Foundation
6386
6758
# gives unlimited permission to copy and/or distribute it,
6390
6762
# ----------------------------
6391
6763
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6392
6764
# generated from the m4 files accompanying Automake X.Y.
6393
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6765
# (This private macro should not be called outside this file.)
 
6766
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6767
[am__api_version='1.10'
 
6768
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6769
dnl require some minimum version.  Point them to the right macro.
 
6770
m4_if([$1], [1.10.1], [],
 
6771
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6772
])
 
6773
 
 
6774
# _AM_AUTOCONF_VERSION(VERSION)
 
6775
# -----------------------------
 
6776
# aclocal traces this macro to find the Autoconf version.
 
6777
# This is a private macro too.  Using m4_define simplifies
 
6778
# the logic in aclocal, which can simply ignore this definition.
 
6779
m4_define([_AM_AUTOCONF_VERSION], [])
6394
6780
 
6395
6781
# AM_SET_CURRENT_AUTOMAKE_VERSION
6396
6782
# -------------------------------
6397
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6783
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6398
6784
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6399
6785
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6400
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6786
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
6787
m4_ifndef([AC_AUTOCONF_VERSION],
 
6788
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
6789
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6401
6790
 
6402
6791
# Figure out how to run the assembler.                      -*- Autoconf -*-
6403
6792
 
6404
 
# Copyright (C) 2001, 2003, 2004, 2005  Free Software Foundation, Inc.
 
6793
# Copyright (C) 2001, 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
6405
6794
#
6406
6795
# This file is free software; the Free Software Foundation
6407
6796
# gives unlimited permission to copy and/or distribute it,
6408
6797
# with or without modifications, as long as this notice is preserved.
6409
6798
 
6410
 
# serial 4
 
6799
# serial 5
6411
6800
 
6412
6801
# AM_PROG_AS
6413
6802
# ----------
6418
6807
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6419
6808
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
6420
6809
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
 
6810
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
6421
6811
])
6422
6812
 
6423
6813
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6475
6865
 
6476
6866
# AM_CONDITIONAL                                            -*- Autoconf -*-
6477
6867
 
6478
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6868
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6479
6869
# Free Software Foundation, Inc.
6480
6870
#
6481
6871
# This file is free software; the Free Software Foundation
6482
6872
# gives unlimited permission to copy and/or distribute it,
6483
6873
# with or without modifications, as long as this notice is preserved.
6484
6874
 
6485
 
# serial 7
 
6875
# serial 8
6486
6876
 
6487
6877
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6488
6878
# -------------------------------------
6491
6881
[AC_PREREQ(2.52)dnl
6492
6882
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6493
6883
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6494
 
AC_SUBST([$1_TRUE])
6495
 
AC_SUBST([$1_FALSE])
 
6884
AC_SUBST([$1_TRUE])dnl
 
6885
AC_SUBST([$1_FALSE])dnl
 
6886
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6887
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6496
6888
if $2; then
6497
6889
  $1_TRUE=
6498
6890
  $1_FALSE='#'
6506
6898
Usually this means the macro was only invoked conditionally.]])
6507
6899
fi])])
6508
6900
 
6509
 
 
6510
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6901
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6511
6902
# Free Software Foundation, Inc.
6512
6903
#
6513
6904
# This file is free software; the Free Software Foundation
6514
6905
# gives unlimited permission to copy and/or distribute it,
6515
6906
# with or without modifications, as long as this notice is preserved.
6516
6907
 
6517
 
# serial 8
 
6908
# serial 9
6518
6909
 
6519
6910
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6520
6911
# written in clear, in which case automake, when reading aclocal.m4,
6542
6933
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6543
6934
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6544
6935
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6936
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6545
6937
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6546
6938
                   [depcc="$$1"   am_compiler_list=])
6547
6939
 
6607
6999
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6608
7000
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6609
7001
         >/dev/null 2>conftest.err &&
 
7002
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6610
7003
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6611
7004
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6612
7005
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6659
7052
  AMDEPBACKSLASH='\'
6660
7053
fi
6661
7054
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6662
 
AC_SUBST([AMDEPBACKSLASH])
 
7055
AC_SUBST([AMDEPBACKSLASH])dnl
 
7056
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6663
7057
])
6664
7058
 
6665
7059
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6684
7078
  # some people rename them; so instead we look at the file content.
6685
7079
  # Grep'ing the first line is not enough: some people post-process
6686
7080
  # each Makefile.in and add a new line on top of each file to say so.
6687
 
  # So let's grep whole file.
6688
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
7081
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7082
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7083
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6689
7084
    dirpart=`AS_DIRNAME("$mf")`
6690
7085
  else
6691
7086
    continue
6744
7139
 
6745
7140
# Do all the work for Automake.                             -*- Autoconf -*-
6746
7141
 
6747
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6748
 
# Free Software Foundation, Inc.
 
7142
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7143
# 2005, 2006, 2008 Free Software Foundation, Inc.
6749
7144
#
6750
7145
# This file is free software; the Free Software Foundation
6751
7146
# gives unlimited permission to copy and/or distribute it,
6752
7147
# with or without modifications, as long as this notice is preserved.
6753
7148
 
6754
 
# serial 12
 
7149
# serial 13
6755
7150
 
6756
7151
# This macro actually does too much.  Some checks are only needed if
6757
7152
# your package does certain things.  But this isn't really a big deal.
6768
7163
# arguments mandatory, and then we can depend on a new Autoconf
6769
7164
# release and drop the old call support.
6770
7165
AC_DEFUN([AM_INIT_AUTOMAKE],
6771
 
[AC_PREREQ([2.58])dnl
 
7166
[AC_PREREQ([2.60])dnl
6772
7167
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6773
7168
dnl the ones we care about.
6774
7169
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6775
7170
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6776
7171
AC_REQUIRE([AC_PROG_INSTALL])dnl
6777
 
# test to see if srcdir already configured
6778
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6779
 
   test -f $srcdir/config.status; then
6780
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7172
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7173
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7174
  # is not polluted with repeated "-I."
 
7175
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7176
  # test to see if srcdir already configured
 
7177
  if test -f $srcdir/config.status; then
 
7178
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7179
  fi
6781
7180
fi
6782
7181
 
6783
7182
# test whether we have cygpath
6797
7196
 AC_SUBST([PACKAGE], [$1])dnl
6798
7197
 AC_SUBST([VERSION], [$2])],
6799
7198
[_AM_SET_OPTIONS([$1])dnl
 
7199
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7200
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7201
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6800
7202
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6801
7203
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6802
7204
 
6832
7234
                  [_AM_DEPENDENCIES(CXX)],
6833
7235
                  [define([AC_PROG_CXX],
6834
7236
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7237
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7238
                  [_AM_DEPENDENCIES(OBJC)],
 
7239
                  [define([AC_PROG_OBJC],
 
7240
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6835
7241
])
6836
7242
])
6837
7243
 
6845
7251
# our stamp files there.
6846
7252
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6847
7253
[# Compute $1's index in $config_headers.
 
7254
_am_arg=$1
6848
7255
_am_stamp_count=1
6849
7256
for _am_header in $config_headers :; do
6850
7257
  case $_am_header in
6851
 
    $1 | $1:* )
 
7258
    $_am_arg | $_am_arg:* )
6852
7259
      break ;;
6853
7260
    * )
6854
7261
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6855
7262
  esac
6856
7263
done
6857
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7264
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
6858
7265
 
6859
7266
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
6860
7267
#
6867
7274
# Define $install_sh.
6868
7275
AC_DEFUN([AM_PROG_INSTALL_SH],
6869
7276
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6870
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7277
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6871
7278
AC_SUBST(install_sh)])
6872
7279
 
6873
7280
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
6974
7381
 
6975
7382
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
6976
7383
 
6977
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7384
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
6978
7385
# Free Software Foundation, Inc.
6979
7386
#
6980
7387
# This file is free software; the Free Software Foundation
6981
7388
# gives unlimited permission to copy and/or distribute it,
6982
7389
# with or without modifications, as long as this notice is preserved.
6983
7390
 
6984
 
# serial 4
 
7391
# serial 5
6985
7392
 
6986
7393
# AM_MISSING_PROG(NAME, PROGRAM)
6987
7394
# ------------------------------
6997
7404
# If it does, set am_missing_run to use it, otherwise, to nothing.
6998
7405
AC_DEFUN([AM_MISSING_HAS_RUN],
6999
7406
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7407
AC_REQUIRE_AUX_FILE([missing])dnl
7000
7408
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7001
7409
# Use eval to expand $SHELL
7002
7410
if eval "$MISSING --run true"; then
7007
7415
fi
7008
7416
])
7009
7417
 
7010
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7418
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7011
7419
#
7012
7420
# This file is free software; the Free Software Foundation
7013
7421
# gives unlimited permission to copy and/or distribute it,
7015
7423
 
7016
7424
# AM_PROG_MKDIR_P
7017
7425
# ---------------
7018
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7019
 
#
7020
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7021
 
# created by `make install' are always world readable, even if the
7022
 
# installer happens to have an overly restrictive umask (e.g. 077).
7023
 
# This was a mistake.  There are at least two reasons why we must not
7024
 
# use `-m 0755':
7025
 
#   - it causes special bits like SGID to be ignored,
7026
 
#   - it may be too restrictive (some setups expect 775 directories).
7027
 
#
7028
 
# Do not use -m 0755 and let people choose whatever they expect by
7029
 
# setting umask.
7030
 
#
7031
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7032
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7033
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7034
 
# concurrently, both version can detect that a/ is missing, but only
7035
 
# one can create it and the other will error out.  Consequently we
7036
 
# restrict ourselves to GNU make (using the --version option ensures
7037
 
# this.)
 
7426
# Check for `mkdir -p'.
7038
7427
AC_DEFUN([AM_PROG_MKDIR_P],
7039
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7040
 
  # We used to keeping the `.' as first argument, in order to
7041
 
  # allow $(mkdir_p) to be used without argument.  As in
7042
 
  #   $(mkdir_p) $(somedir)
7043
 
  # where $(somedir) is conditionally defined.  However this is wrong
7044
 
  # for two reasons:
7045
 
  #  1. if the package is installed by a user who cannot write `.'
7046
 
  #     make install will fail,
7047
 
  #  2. the above comment should most certainly read
7048
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7049
 
  #     so it does not work when $(somedir) is undefined and
7050
 
  #     $(DESTDIR) is not.
7051
 
  #  To support the latter case, we have to write
7052
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7053
 
  #  so the `.' trick is pointless.
7054
 
  mkdir_p='mkdir -p --'
7055
 
else
7056
 
  # On NextStep and OpenStep, the `mkdir' command does not
7057
 
  # recognize any option.  It will interpret all options as
7058
 
  # directories to create, and then abort because `.' already
7059
 
  # exists.
7060
 
  for d in ./-p ./--version;
7061
 
  do
7062
 
    test -d $d && rmdir $d
7063
 
  done
7064
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7065
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7066
 
    mkdir_p='$(mkinstalldirs)'
7067
 
  else
7068
 
    mkdir_p='$(install_sh) -d'
7069
 
  fi
7070
 
fi
7071
 
AC_SUBST([mkdir_p])])
 
7428
[AC_PREREQ([2.60])dnl
 
7429
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7430
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7431
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7432
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7433
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7434
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7435
dnl adjustment using top_builddir (which is defined more often than
 
7436
dnl MKDIR_P).
 
7437
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7438
case $mkdir_p in
 
7439
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7440
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7441
esac
 
7442
 
 
7443
#
 
7444
# Check to make sure the static flag actually works.
 
7445
#
 
7446
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
7447
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
7448
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
7449
  $lt_tmp_static_flag,
 
7450
  [],
 
7451
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
7452
])
7072
7453
 
7073
7454
# Helper functions for option handling.                     -*- Autoconf -*-
7074
7455
 
7180
7561
if test "$cross_compiling" != no; then
7181
7562
  AC_CHECK_TOOL([STRIP], [strip], :)
7182
7563
fi
7183
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7564
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7184
7565
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7185
7566
 
 
7567
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7568
#
 
7569
# This file is free software; the Free Software Foundation
 
7570
# gives unlimited permission to copy and/or distribute it,
 
7571
# with or without modifications, as long as this notice is preserved.
 
7572
 
 
7573
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7574
# ---------------------------
 
7575
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
7576
# This macro is traced by Automake.
 
7577
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7578
 
 
7579
# Check how to create a tarball.                            -*- Autoconf -*-
 
7580
 
 
7581
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
7582
#
 
7583
# This file is free software; the Free Software Foundation
 
7584
# gives unlimited permission to copy and/or distribute it,
 
7585
# with or without modifications, as long as this notice is preserved.
 
7586
 
 
7587
# serial 2
 
7588
 
 
7589
# _AM_PROG_TAR(FORMAT)
 
7590
# --------------------
 
7591
# Check how to create a tarball in format FORMAT.
 
7592
# FORMAT should be one of `v7', `ustar', or `pax'.
 
7593
#
 
7594
# Substitute a variable $(am__tar) that is a command
 
7595
# writing to stdout a FORMAT-tarball containing the directory
 
7596
# $tardir.
 
7597
#     tardir=directory && $(am__tar) > result.tar
 
7598
#
 
7599
# Substitute a variable $(am__untar) that extract such
 
7600
# a tarball read from stdin.
 
7601
#     $(am__untar) < result.tar
 
7602
AC_DEFUN([_AM_PROG_TAR],
 
7603
[# Always define AMTAR for backward compatibility.
 
7604
AM_MISSING_PROG([AMTAR], [tar])
 
7605
m4_if([$1], [v7],
 
7606
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7607
     [m4_case([$1], [ustar],, [pax],,
 
7608
              [m4_fatal([Unknown tar format])])
 
7609
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7610
# Loop over all known methods to create a tar archive until one works.
 
7611
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7612
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7613
# Do not fold the above two line into one, because Tru64 sh and
 
7614
# Solaris sh will not grok spaces in the rhs of `-'.
 
7615
for _am_tool in $_am_tools
 
7616
do
 
7617
  case $_am_tool in
 
7618
  gnutar)
 
7619
    for _am_tar in tar gnutar gtar;
 
7620
    do
 
7621
      AM_RUN_LOG([$_am_tar --version]) && break
 
7622
    done
 
7623
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7624
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7625
    am__untar="$_am_tar -xf -"
 
7626
    ;;
 
7627
  plaintar)
 
7628
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7629
    # ustar tarball either.
 
7630
    (tar --version) >/dev/null 2>&1 && continue
 
7631
    am__tar='tar chf - "$$tardir"'
 
7632
    am__tar_='tar chf - "$tardir"'
 
7633
    am__untar='tar xf -'
 
7634
    ;;
 
7635
  pax)
 
7636
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7637
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7638
    am__untar='pax -r'
 
7639
    ;;
 
7640
  cpio)
 
7641
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7642
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7643
    am__untar='cpio -i -H $1 -d'
 
7644
    ;;
 
7645
  none)
 
7646
    am__tar=false
 
7647
    am__tar_=false
 
7648
    am__untar=false
 
7649
    ;;
 
7650
  esac
 
7651
 
 
7652
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7653
  # and am__untar set.
 
7654
  test -n "${am_cv_prog_tar_$1}" && break
 
7655
 
 
7656
  # tar/untar a dummy directory, and stop if the command works
 
7657
  rm -rf conftest.dir
 
7658
  mkdir conftest.dir
 
7659
  echo GrepMe > conftest.dir/file
 
7660
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7661
  rm -rf conftest.dir
 
7662
  if test -s conftest.tar; then
 
7663
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7664
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
7665
  fi
 
7666
done
 
7667
rm -rf conftest.dir
 
7668
 
 
7669
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7670
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7671
AC_SUBST([am__tar])
 
7672
AC_SUBST([am__untar])
 
7673
]) # _AM_PROG_TAR
 
7674
 
7186
7675
# Check how to create a tarball.                            -*- Autoconf -*-
7187
7676
 
7188
7677
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.