~ubuntu-branches/ubuntu/oneiric/suphp/oneiric

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Lacour
  • Date: 2009-08-03 15:15:38 UTC
  • mfrom: (8.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090803151538-pv7yhe6w1mqmceas
Tags: 0.7.1-1
* New upstream release (closes: #528379, #520182) 
* debian/NEWS: add information about AddHandler -> AddType change introduced
  in 0.6.2-2 (closes: #517805)
* debian/conf/suphp.conf, debian/patches/01_debian.dpatch: switch from
  application/x-httpd-php to application/x-httpd-suphp to allow
  simultaneous use of mod_suphp and mod_php (closes: #519005, #514725)

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 AC_PROG_LIBTOOL
 
24
# serial 52 Debian 1.5.26-1ubuntu1 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)
219
228
    [pic_mode=default])
220
229
test -z "$pic_mode" && pic_mode=default
221
230
 
222
 
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
223
 
#
224
 
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
225
 
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
226
 
#        calls AC_LIBTOOL_CONFIG and creates libtool.
227
 
#
228
 
_LT_VERSION_CHECK
229
 
 
230
231
# Use C for the default configuration in the libtool script
231
232
tagname=
232
233
AC_LIBTOOL_LANG_C_CONFIG
234
235
])# AC_LIBTOOL_SETUP
235
236
 
236
237
 
237
 
# _LT_VERSION_CHECK
238
 
# -----------------
239
 
AC_DEFUN([_LT_VERSION_CHECK],
240
 
[AC_MSG_CHECKING([for correct ltmain.sh version])
241
 
if test "x$ltmain" = "x" ; then
242
 
  AC_MSG_RESULT(no)
243
 
  AC_MSG_ERROR([
244
 
 
245
 
*** @<:@Gentoo@:>@ sanity check failed! ***
246
 
*** \$ltmain is not defined, please check the patch for consistency! ***
247
 
])
248
 
fi
249
 
gentoo_lt_version="1.5.22"
250
 
gentoo_ltmain_version=`sed -n '/^[[     ]]*VERSION=/{s/^[[      ]]*VERSION=//;p;q;}' "$ltmain"`
251
 
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
252
 
  AC_MSG_RESULT(no)
253
 
  AC_MSG_ERROR([
254
 
 
255
 
*** @<:@Gentoo@:>@ sanity check failed! ***
256
 
*** libtool.m4 and ltmain.sh have a version mismatch! ***
257
 
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
258
 
 
259
 
Please run:
260
 
 
261
 
  libtoolize --copy --force
262
 
 
263
 
if appropriate, please contact the maintainer of this
264
 
package (or your distribution) for help.
265
 
])
266
 
else
267
 
  AC_MSG_RESULT(yes)
268
 
fi
269
 
])# _LT_VERSION_CHECK
270
 
 
271
 
 
272
238
# _LT_AC_SYS_COMPILER
273
239
# -------------------
274
240
AC_DEFUN([_LT_AC_SYS_COMPILER],
306
272
# Check for compiler boilerplate output or warnings with
307
273
# the simple compiler test code.
308
274
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
309
 
[ac_outfile=conftest.$ac_objext
310
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
275
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
276
ac_outfile=conftest.$ac_objext
 
277
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
311
278
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
312
279
_lt_compiler_boilerplate=`cat conftest.err`
313
280
$rm conftest*
319
286
# Check for linker boilerplate output or warnings with
320
287
# the simple link test code.
321
288
AC_DEFUN([_LT_LINKER_BOILERPLATE],
322
 
[ac_outfile=conftest.$ac_objext
323
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
289
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
290
ac_outfile=conftest.$ac_objext
 
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
324
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
325
293
_lt_linker_boilerplate=`cat conftest.err`
326
 
$rm conftest*
 
294
$rm -r conftest*
327
295
])# _LT_LINKER_BOILERPLATE
328
296
 
 
297
# _LT_REQUIRED_DARWIN_CHECKS
 
298
# --------------------------
 
299
# Check for some things on darwin
 
300
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
301
  case $host_os in
 
302
    rhapsody* | darwin*)
 
303
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
304
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
305
 
 
306
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
307
      [lt_cv_apple_cc_single_mod=no
 
308
      if test -z "${LT_MULTI_MODULE}"; then
 
309
   # By default we will add the -single_module flag. You can override
 
310
   # by either setting the environment variable LT_MULTI_MODULE
 
311
   # non-empty at configure time, or by adding -multi_module to the
 
312
   # link flags.
 
313
   echo "int foo(void){return 1;}" > conftest.c
 
314
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
315
     -dynamiclib ${wl}-single_module conftest.c
 
316
   if test -f libconftest.dylib; then
 
317
     lt_cv_apple_cc_single_mod=yes
 
318
     rm -rf libconftest.dylib*
 
319
   fi
 
320
   rm conftest.c
 
321
      fi])
 
322
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
323
      [lt_cv_ld_exported_symbols_list],
 
324
      [lt_cv_ld_exported_symbols_list=no
 
325
      save_LDFLAGS=$LDFLAGS
 
326
      echo "_main" > conftest.sym
 
327
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
328
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
329
   [lt_cv_ld_exported_symbols_list=yes],
 
330
   [lt_cv_ld_exported_symbols_list=no])
 
331
   LDFLAGS="$save_LDFLAGS"
 
332
    ])
 
333
    case $host_os in
 
334
    rhapsody* | darwin1.[[0123]])
 
335
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
336
    darwin1.*)
 
337
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
338
    darwin*)
 
339
      # if running on 10.5 or later, the deployment target defaults
 
340
      # to the OS version, if on x86, and 10.4, the deployment
 
341
      # target defaults to 10.4. Don't you love it?
 
342
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
343
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
344
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
345
   10.[[012]]*)
 
346
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
347
   10.*)
 
348
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
349
      esac
 
350
    ;;
 
351
  esac
 
352
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
353
      _lt_dar_single_mod='$single_module'
 
354
    fi
 
355
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
356
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
357
    else
 
358
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
359
    fi
 
360
    if test "$DSYMUTIL" != ":"; then
 
361
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
362
    else
 
363
      _lt_dsymutil=
 
364
    fi
 
365
    ;;
 
366
  esac
 
367
])
329
368
 
330
369
# _LT_AC_SYS_LIBPATH_AIX
331
370
# ----------------------
336
375
# If we don't find anything, use the default library path according
337
376
# to the aix ld manual.
338
377
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
339
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
340
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
341
 
}'`
 
378
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
379
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
380
lt_aix_libpath_sed='
 
381
    /Import File Strings/,/^$/ {
 
382
        /^0/ {
 
383
            s/^0  *\(.*\)$/\1/
 
384
            p
 
385
        }
 
386
    }'
 
387
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
342
388
# Check for a 64-bit object if we didn't find anything.
343
 
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; }
344
 
}'`; fi],[])
 
389
if test -z "$aix_libpath"; then
 
390
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
391
fi],[])
345
392
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
346
393
])# _LT_AC_SYS_LIBPATH_AIX
347
394
 
572
619
  rm -rf conftest*
573
620
  ;;
574
621
 
575
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
622
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
623
s390*-*linux*|sparc*-*linux*)
576
624
  # Find out which ABI we are using.
577
625
  echo 'int i;' > conftest.$ac_ext
578
626
  if AC_TRY_EVAL(ac_compile); then
579
627
    case `/usr/bin/file conftest.o` in
580
628
    *32-bit*)
581
629
      case $host in
 
630
        x86_64-*kfreebsd*-gnu)
 
631
          LD="${LD-ld} -m elf_i386_fbsd"
 
632
          ;;
582
633
        x86_64-*linux*)
583
634
          LD="${LD-ld} -m elf_i386"
584
635
          ;;
595
646
      ;;
596
647
    *64-bit*)
597
648
      case $host in
 
649
        x86_64-*kfreebsd*-gnu)
 
650
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
651
          ;;
598
652
        x86_64-*linux*)
599
653
          LD="${LD-ld} -m elf_x86_64"
600
654
          ;;
635
689
    *64-bit*)
636
690
      case $lt_cv_prog_gnu_ld in
637
691
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
638
 
      *)    LD="${LD-ld} -64" ;;
 
692
      *)
 
693
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
694
          LD="${LD-ld} -64"
 
695
        fi
 
696
        ;;
639
697
      esac
640
698
      ;;
641
699
    esac
666
724
AC_CACHE_CHECK([$1], [$2],
667
725
  [$2=no
668
726
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
669
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
727
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
670
728
   lt_compiler_flag="$3"
671
729
   # Insert the option either (1) after the last *FLAGS variable, or
672
730
   # (2) before a word containing "conftest.", or (3) at the end.
707
765
# ------------------------------------------------------------
708
766
# Check whether the given compiler option works
709
767
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
710
 
[AC_CACHE_CHECK([$1], [$2],
 
768
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
769
AC_CACHE_CHECK([$1], [$2],
711
770
  [$2=no
712
771
   save_LDFLAGS="$LDFLAGS"
713
772
   LDFLAGS="$LDFLAGS $3"
714
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
773
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
715
774
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
716
775
     # The linker can only warn and ignore the option if not recognized
717
776
     # So say no if there are warnings
727
786
       $2=yes
728
787
     fi
729
788
   fi
730
 
   $rm conftest*
 
789
   $rm -r conftest*
731
790
   LDFLAGS="$save_LDFLAGS"
732
791
])
733
792
 
825
884
    fi
826
885
    ;;
827
886
  *)
828
 
    # If test is not a shell built-in, we'll probably end up computing a
829
 
    # maximum length that is only half of the actual maximum length, but
830
 
    # we can't tell.
831
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
832
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
887
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
888
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
889
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
890
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
891
    else
 
892
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
893
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
833
894
               = "XX$teststring") >/dev/null 2>&1 &&
834
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
835
 
            lt_cv_sys_max_cmd_len=$new_result &&
836
 
            test $i != 17 # 1/2 MB should be enough
837
 
    do
838
 
      i=`expr $i + 1`
839
 
      teststring=$teststring$teststring
840
 
    done
841
 
    teststring=
842
 
    # Add a significant safety factor because C++ compilers can tack on massive
843
 
    # amounts of additional arguments before passing them to the linker.
844
 
    # It appears as though 1/2 is a usable value.
845
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
895
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
896
              lt_cv_sys_max_cmd_len=$new_result &&
 
897
              test $i != 17 # 1/2 MB should be enough
 
898
      do
 
899
        i=`expr $i + 1`
 
900
        teststring=$teststring$teststring
 
901
      done
 
902
      teststring=
 
903
      # Add a significant safety factor because C++ compilers can tack on massive
 
904
      # amounts of additional arguments before passing them to the linker.
 
905
      # It appears as though 1/2 is a usable value.
 
906
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
907
    fi
846
908
    ;;
847
909
  esac
848
910
])
995
1057
    AC_CHECK_FUNC([shl_load],
996
1058
          [lt_cv_dlopen="shl_load"],
997
1059
      [AC_CHECK_LIB([dld], [shl_load],
998
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1060
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
999
1061
        [AC_CHECK_FUNC([dlopen],
1000
1062
              [lt_cv_dlopen="dlopen"],
1001
1063
          [AC_CHECK_LIB([dl], [dlopen],
1003
1065
            [AC_CHECK_LIB([svld], [dlopen],
1004
1066
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1005
1067
              [AC_CHECK_LIB([dld], [dld_link],
1006
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1068
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1007
1069
              ])
1008
1070
            ])
1009
1071
          ])
1069
1131
# ---------------------------------
1070
1132
# Check to see if options -c and -o are simultaneously supported by compiler
1071
1133
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1072
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1134
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1135
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1073
1136
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1074
1137
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1075
1138
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1077
1140
   mkdir conftest
1078
1141
   cd conftest
1079
1142
   mkdir out
1080
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1143
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1081
1144
 
1082
1145
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1083
1146
   # Insert the option either (1) after the last *FLAGS variable, or
1217
1280
   darwin*)
1218
1281
       if test -n "$STRIP" ; then
1219
1282
         striplib="$STRIP -x"
 
1283
         old_striplib="$STRIP -S"
1220
1284
         AC_MSG_RESULT([yes])
1221
1285
       else
1222
1286
  AC_MSG_RESULT([no])
1234
1298
# -----------------------------
1235
1299
# PORTME Fill in your ld.so characteristics
1236
1300
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1237
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1301
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1302
AC_MSG_CHECKING([dynamic linker characteristics])
1238
1303
library_names_spec=
1239
1304
libname_spec='lib$name'
1240
1305
soname_spec=
1248
1313
version_type=none
1249
1314
dynamic_linker="$host_os ld.so"
1250
1315
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1316
m4_if($1,[],[
1251
1317
if test "$GCC" = yes; then
1252
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1253
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1318
  case $host_os in
 
1319
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1320
    *) lt_awk_arg="/^libraries:/" ;;
 
1321
  esac
 
1322
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1323
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1254
1324
    # if the path contains ";" then we assume it to be the separator
1255
1325
    # otherwise default to the standard path separator (i.e. ":") - it is
1256
1326
    # assumed that no part of a normal pathname contains ";" but that should
1257
1327
    # okay in the real world where ";" in dirpaths is itself problematic.
1258
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1328
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1259
1329
  else
1260
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1330
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1261
1331
  fi
 
1332
  # Ok, now we have the path, separated by spaces, we can step through it
 
1333
  # and add multilib dir if necessary.
 
1334
  lt_tmp_lt_search_path_spec=
 
1335
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1336
  for lt_sys_path in $lt_search_path_spec; do
 
1337
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1338
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1339
    else
 
1340
      test -d "$lt_sys_path" && \
 
1341
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1342
    fi
 
1343
  done
 
1344
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1345
BEGIN {RS=" "; FS="/|\n";} {
 
1346
  lt_foo="";
 
1347
  lt_count=0;
 
1348
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1349
    if ($lt_i != "" && $lt_i != ".") {
 
1350
      if ($lt_i == "..") {
 
1351
        lt_count++;
 
1352
      } else {
 
1353
        if (lt_count == 0) {
 
1354
          lt_foo="/" $lt_i lt_foo;
 
1355
        } else {
 
1356
          lt_count--;
 
1357
        }
 
1358
      }
 
1359
    }
 
1360
  }
 
1361
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1362
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1363
}'`
 
1364
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1262
1365
else
1263
1366
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1264
 
fi
 
1367
fi])
1265
1368
need_lib_prefix=unknown
1266
1369
hardcode_into_libs=no
1267
1370
 
1279
1382
  soname_spec='${libname}${release}${shared_ext}$major'
1280
1383
  ;;
1281
1384
 
1282
 
aix4* | aix5*)
 
1385
aix[[4-9]]*)
1283
1386
  version_type=linux
1284
1387
  need_lib_prefix=no
1285
1388
  need_version=no
1399
1502
    esac
1400
1503
    ;;
1401
1504
 
1402
 
  linux*)
1403
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1404
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1405
 
      supports_anon_versioning=no
1406
 
      case `$LD -v 2>/dev/null` in
1407
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1408
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1409
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1410
 
        *\ 2.11.*) ;; # other 2.11 versions
1411
 
        *) supports_anon_versioning=yes ;;
1412
 
      esac
1413
 
      if test $supports_anon_versioning = yes; then
1414
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
1415
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1416
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
1417
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1418
 
      else
1419
 
        $archive_expsym_cmds="$archive_cmds"
1420
 
      fi
1421
 
    else
1422
 
      ld_shlibs=no
1423
 
    fi
1424
 
    ;;
1425
 
 
1426
1505
  *)
1427
1506
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1428
1507
    ;;
1442
1521
  shlibpath_overrides_runpath=yes
1443
1522
  shlibpath_var=DYLD_LIBRARY_PATH
1444
1523
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1445
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1446
 
  if test "$GCC" = yes; then
1447
 
    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"`
1448
 
  else
1449
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1450
 
  fi
 
1524
  m4_if([$1], [],[
 
1525
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1451
1526
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1452
1527
  ;;
1453
1528
 
1464
1539
  dynamic_linker=no
1465
1540
  ;;
1466
1541
 
1467
 
kfreebsd*-gnu)
1468
 
  version_type=linux
1469
 
  need_lib_prefix=no
1470
 
  need_version=no
1471
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1472
 
  soname_spec='${libname}${release}${shared_ext}$major'
1473
 
  shlibpath_var=LD_LIBRARY_PATH
1474
 
  shlibpath_overrides_runpath=no
1475
 
  hardcode_into_libs=yes
1476
 
  dynamic_linker='GNU ld.so'
1477
 
  ;;
1478
 
 
1479
1542
freebsd* | dragonfly*)
1480
1543
  # DragonFly does not have aout.  When/if they implement a new
1481
1544
  # versioning mechanism, adjust this.
1487
1550
    *) objformat=elf ;;
1488
1551
    esac
1489
1552
  fi
1490
 
  # Handle Gentoo/FreeBSD as it was Linux
1491
 
  case $host_vendor in
1492
 
    gentoo)
1493
 
      version_type=linux ;;
1494
 
    *)
1495
 
      version_type=freebsd-$objformat ;;
1496
 
  esac
1497
 
 
 
1553
  version_type=freebsd-$objformat
1498
1554
  case $version_type in
1499
1555
    freebsd-elf*)
1500
1556
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1505
1561
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1506
1562
      need_version=yes
1507
1563
      ;;
1508
 
    linux)
1509
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1510
 
      soname_spec='${libname}${release}${shared_ext}$major'
1511
 
      need_lib_prefix=no
1512
 
      need_version=no
1513
 
      ;;
1514
1564
  esac
1515
1565
  shlibpath_var=LD_LIBRARY_PATH
1516
1566
  case $host_os in
1526
1576
    shlibpath_overrides_runpath=no
1527
1577
    hardcode_into_libs=yes
1528
1578
    ;;
1529
 
  freebsd*) # from 4.6 on
 
1579
  *) # from 4.6 on, and DragonFly
1530
1580
    shlibpath_overrides_runpath=yes
1531
1581
    hardcode_into_libs=yes
1532
1582
    ;;
1589
1639
  postinstall_cmds='chmod 555 $lib'
1590
1640
  ;;
1591
1641
 
1592
 
interix3*)
 
1642
interix[[3-9]]*)
1593
1643
  version_type=linux
1594
1644
  need_lib_prefix=no
1595
1645
  need_version=no
1644
1694
  ;;
1645
1695
 
1646
1696
# This must be Linux ELF.
1647
 
linux*)
 
1697
linux* | k*bsd*-gnu)
1648
1698
  version_type=linux
1649
1699
  need_lib_prefix=no
1650
1700
  need_version=no
1660
1710
 
1661
1711
  # Append ld.so.conf contents to the search path
1662
1712
  if test -f /etc/ld.so.conf; then
1663
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1713
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1664
1714
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1665
1715
  fi
1666
1716
 
1673
1723
  dynamic_linker='GNU/Linux ld.so'
1674
1724
  ;;
1675
1725
 
1676
 
knetbsd*-gnu)
 
1726
netbsdelf*-gnu)
1677
1727
  version_type=linux
1678
1728
  need_lib_prefix=no
1679
1729
  need_version=no
1682
1732
  shlibpath_var=LD_LIBRARY_PATH
1683
1733
  shlibpath_overrides_runpath=no
1684
1734
  hardcode_into_libs=yes
1685
 
  dynamic_linker='GNU ld.so'
 
1735
  dynamic_linker='NetBSD ld.elf_so'
1686
1736
  ;;
1687
1737
 
1688
1738
netbsd*)
1766
1816
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1767
1817
  ;;
1768
1818
 
 
1819
rdos*)
 
1820
  dynamic_linker=no
 
1821
  ;;
 
1822
 
1769
1823
solaris*)
1770
1824
  version_type=linux
1771
1825
  need_lib_prefix=no
1861
1915
AC_MSG_RESULT([$dynamic_linker])
1862
1916
test "$dynamic_linker" = no && can_build_shared=no
1863
1917
 
 
1918
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1919
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1920
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1921
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1922
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1923
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1924
 
1864
1925
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1865
1926
if test "$GCC" = yes; then
1866
1927
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1871
1932
# _LT_AC_TAGCONFIG
1872
1933
# ----------------
1873
1934
AC_DEFUN([_LT_AC_TAGCONFIG],
1874
 
[AC_ARG_WITH([tags],
 
1935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1936
AC_ARG_WITH([tags],
1875
1937
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1876
1938
        [include additional configurations @<:@automatic@:>@])],
1877
1939
    [tagnames="$withval"])
2132
2194
 
2133
2195
# AC_PATH_TOOL_PREFIX
2134
2196
# -------------------
2135
 
# find a file program which can recognise shared library
 
2197
# find a file program which can recognize shared library
2136
2198
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2137
2199
[AC_REQUIRE([AC_PROG_EGREP])dnl
2138
2200
AC_MSG_CHECKING([for $1])
2195
2257
 
2196
2258
# AC_PATH_MAGIC
2197
2259
# -------------
2198
 
# find a file program which can recognise a shared library
 
2260
# find a file program which can recognize a shared library
2199
2261
AC_DEFUN([AC_PATH_MAGIC],
2200
2262
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2201
2263
if test -z "$lt_cv_path_MAGIC_CMD"; then
2342
2404
# how to check for library dependencies
2343
2405
#  -- PORTME fill in with the dynamic library characteristics
2344
2406
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2345
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2407
[AC_CACHE_CHECK([how to recognize dependent libraries],
2346
2408
lt_cv_deplibs_check_method,
2347
2409
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2348
2410
lt_cv_file_magic_test_file=
2359
2421
# whether `pass_all' will *always* work, you probably want this one.
2360
2422
 
2361
2423
case $host_os in
2362
 
aix4* | aix5*)
 
2424
aix[[4-9]]*)
2363
2425
  lt_cv_deplibs_check_method=pass_all
2364
2426
  ;;
2365
2427
 
2381
2443
 
2382
2444
mingw* | pw32*)
2383
2445
  # Base MSYS/MinGW do not provide the 'file' command needed by
2384
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2385
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2386
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2446
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2447
  # unless we find 'file', for example because we are cross-compiling.
 
2448
  if ( file / ) >/dev/null 2>&1; then
 
2449
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2450
    lt_cv_file_magic_cmd='func_win32_libid'
 
2451
  else
 
2452
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2453
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2454
  fi
2387
2455
  ;;
2388
2456
 
2389
2457
darwin* | rhapsody*)
2390
2458
  lt_cv_deplibs_check_method=pass_all
2391
2459
  ;;
2392
2460
 
2393
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2461
freebsd* | dragonfly*)
2394
2462
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2395
2463
    case $host_cpu in
2396
2464
    i*86 )
2428
2496
  esac
2429
2497
  ;;
2430
2498
 
2431
 
interix3*)
 
2499
interix[[3-9]]*)
2432
2500
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2433
2501
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2434
2502
  ;;
2444
2512
  ;;
2445
2513
 
2446
2514
# This must be Linux ELF.
2447
 
linux*)
 
2515
linux* | k*bsd*-gnu)
2448
2516
  lt_cv_deplibs_check_method=pass_all
2449
2517
  ;;
2450
2518
 
2451
 
netbsd*)
 
2519
netbsd* | netbsdelf*-gnu)
2452
2520
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2453
2521
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2454
2522
  else
2478
2546
  lt_cv_deplibs_check_method=pass_all
2479
2547
  ;;
2480
2548
 
 
2549
rdos*)
 
2550
  lt_cv_deplibs_check_method=pass_all
 
2551
  ;;
 
2552
 
2481
2553
solaris*)
2482
2554
  lt_cv_deplibs_check_method=pass_all
2483
2555
  ;;
2530
2602
  lt_cv_path_NM="$NM"
2531
2603
else
2532
2604
  lt_nm_to_check="${ac_tool_prefix}nm"
2533
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2605
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2534
2606
    lt_nm_to_check="$lt_nm_to_check nm"
2535
2607
  fi
2536
2608
  for lt_tmp_nm in $lt_nm_to_check; do
2746
2818
_LT_AC_TAGVAR(objext, $1)=$objext
2747
2819
 
2748
2820
# Code to be used in simple compile tests
2749
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2821
lt_simple_compile_test_code="int some_variable = 0;"
2750
2822
 
2751
2823
# Code to be used in simple link tests
2752
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2824
lt_simple_link_test_code='int main(){return(0);}'
2753
2825
 
2754
2826
_LT_AC_SYS_COMPILER
2755
2827
 
2785
2857
  fi
2786
2858
  ;;
2787
2859
 
2788
 
aix4* | aix5*)
 
2860
aix[[4-9]]*)
2789
2861
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2790
2862
    test "$enable_shared" = yes && enable_static=no
2791
2863
  fi
2842
2914
_LT_AC_TAGVAR(predeps, $1)=
2843
2915
_LT_AC_TAGVAR(postdeps, $1)=
2844
2916
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2917
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2845
2918
 
2846
2919
# Source file extension for C++ test sources.
2847
2920
ac_ext=cpp
2851
2924
_LT_AC_TAGVAR(objext, $1)=$objext
2852
2925
 
2853
2926
# Code to be used in simple compile tests
2854
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2927
lt_simple_compile_test_code="int some_variable = 0;"
2855
2928
 
2856
2929
# Code to be used in simple link tests
2857
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2930
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2858
2931
 
2859
2932
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2860
2933
_LT_AC_SYS_COMPILER
2951
3024
    # FIXME: insert proper C++ library support
2952
3025
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2953
3026
    ;;
2954
 
  aix4* | aix5*)
 
3027
  aix[[4-9]]*)
2955
3028
    if test "$host_cpu" = ia64; then
2956
3029
      # On IA64, the linker does run time linking by default, so we don't
2957
3030
      # have to do anything special.
2964
3037
      # Test if we are trying to use run time linking or normal
2965
3038
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2966
3039
      # need to do runtime linking.
2967
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3040
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
2968
3041
        for ld_flag in $LDFLAGS; do
2969
3042
          case $ld_flag in
2970
3043
          *-brtl*)
3000
3073
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3001
3074
        then
3002
3075
          # We have reworked collect2
3003
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3076
          :
3004
3077
        else
3005
3078
          # We have old collect2
3006
3079
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3110
3183
    fi
3111
3184
  ;;
3112
3185
      darwin* | rhapsody*)
3113
 
        case $host_os in
3114
 
        rhapsody* | darwin1.[[012]])
3115
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3116
 
         ;;
3117
 
       *) # Darwin 1.3 on
3118
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3119
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3120
 
         else
3121
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3122
 
             10.[[012]])
3123
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3124
 
               ;;
3125
 
             10.*)
3126
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3127
 
               ;;
3128
 
           esac
3129
 
         fi
3130
 
         ;;
3131
 
        esac
3132
3186
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3133
3187
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3134
3188
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3135
3189
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3136
3190
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3137
3191
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3138
 
 
3139
 
    if test "$GXX" = yes ; then
3140
 
      lt_int_apple_cc_single_mod=no
 
3192
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3193
      if test "$GXX" = yes ; then
3141
3194
      output_verbose_link_cmd='echo'
3142
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3143
 
       lt_int_apple_cc_single_mod=yes
 
3195
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3196
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3197
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3198
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3199
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3200
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
3201
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3144
3202
      fi
3145
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3146
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3147
 
      else
3148
 
          _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'
3149
 
        fi
3150
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3151
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3152
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3153
 
            _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}'
3154
 
          else
3155
 
            _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}'
3156
 
          fi
3157
 
            _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}'
3158
3203
      else
3159
3204
      case $cc_basename in
3160
3205
        xlc*)
3161
3206
         output_verbose_link_cmd='echo'
3162
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3207
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3163
3208
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3164
3209
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3165
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3210
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3166
3211
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3167
3212
          ;;
3168
3213
       *)
3196
3241
  freebsd-elf*)
3197
3242
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3198
3243
    ;;
3199
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3244
  freebsd* | dragonfly*)
3200
3245
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3201
3246
    # conventions
3202
3247
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3245
3290
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3246
3291
 
3247
3292
      case $host_cpu in
3248
 
      hppa*64*|ia64*)
3249
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3250
 
        ;;
 
3293
      hppa*64*|ia64*) ;;
3251
3294
      *)
3252
3295
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3253
3296
        ;;
3315
3358
        ;;
3316
3359
    esac
3317
3360
    ;;
3318
 
  interix3*)
 
3361
  interix[[3-9]]*)
3319
3362
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3320
3363
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3321
3364
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3355
3398
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3356
3399
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3357
3400
    ;;
3358
 
  linux*)
 
3401
  linux* | k*bsd*-gnu)
3359
3402
    case $cc_basename in
3360
3403
      KCC*)
3361
3404
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3407
3450
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3408
3451
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3409
3452
        ;;
3410
 
      pgCC*)
 
3453
      pgCC* | pgcpp*)
3411
3454
        # Portland Group C++ compiler
3412
3455
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3413
3456
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3435
3478
        # dependencies.
3436
3479
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3437
3480
        ;;
 
3481
      *)
 
3482
        case `$CC -V 2>&1 | sed 5q` in
 
3483
        *Sun\ C*)
 
3484
          # Sun C++ 5.9
 
3485
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3486
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3487
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3488
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3489
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3490
 
 
3491
          # Not sure whether something based on
 
3492
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3493
          # would be better.
 
3494
          output_verbose_link_cmd='echo'
 
3495
 
 
3496
          # Archives containing C++ object files must be created using
 
3497
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3498
          # necessary to make sure instantiated templates are included
 
3499
          # in the archive.
 
3500
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3501
          ;;
 
3502
        esac
 
3503
        ;;
3438
3504
    esac
3439
3505
    ;;
3440
3506
  lynxos*)
3457
3523
        ;;
3458
3524
    esac
3459
3525
    ;;
3460
 
  netbsd*)
 
3526
  netbsd* | netbsdelf*-gnu)
3461
3527
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3462
3528
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3463
3529
      wlarc=
3473
3539
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3474
3540
    ;;
3475
3541
  openbsd*)
3476
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3477
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3478
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3479
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3480
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3481
 
      _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'
3482
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3483
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3542
    if test -f /usr/libexec/ld.so; then
 
3543
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3544
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3545
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3546
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3547
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3548
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3549
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3550
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3551
      fi
 
3552
      output_verbose_link_cmd='echo'
 
3553
    else
 
3554
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3484
3555
    fi
3485
 
    output_verbose_link_cmd='echo'
3486
3556
    ;;
3487
3557
  osf3*)
3488
3558
    case $cc_basename in
3644
3714
        case $host_os in
3645
3715
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3646
3716
          *)
3647
 
            # The C++ compiler is used as linker so we must use $wl
3648
 
            # flag to pass the commands to the underlying system
3649
 
            # linker. We must also pass each convience library through
3650
 
            # to the system linker between allextract/defaultextract.
3651
 
            # The C++ compiler will combine linker options so we
3652
 
            # cannot just pass the convience library names through
3653
 
            # without $wl.
 
3717
            # The compiler driver will combine and reorder linker options,
 
3718
            # but understands `-z linker_flag'.
3654
3719
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3655
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3720
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3656
3721
            ;;
3657
3722
        esac
3658
3723
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3699
3764
          fi
3700
3765
 
3701
3766
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3767
          case $host_os in
 
3768
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3769
          *)
 
3770
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3771
            ;;
 
3772
          esac
3702
3773
        fi
3703
3774
        ;;
3704
3775
    esac
3814
3885
# compiler output when linking a shared library.
3815
3886
# Parse the compiler output and extract the necessary
3816
3887
# objects, libraries and library flags.
3817
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3888
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3889
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3818
3890
dnl we can't use the lt_simple_compile_test_code here,
3819
3891
dnl because it contains code intended for an executable,
3820
3892
dnl not a library.  It's possible we should let each
3939
4011
 
3940
4012
$rm -f confest.$objext
3941
4013
 
 
4014
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4015
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4016
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4017
fi
 
4018
 
3942
4019
# PORTME: override above test on systems where it is broken
3943
4020
ifelse([$1],[CXX],
3944
4021
[case $host_os in
3945
 
interix3*)
 
4022
interix[[3-9]]*)
3946
4023
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3947
4024
  # hack all around it, let's just trust "g++" to DTRT.
3948
4025
  _LT_AC_TAGVAR(predep_objects,$1)=
3950
4027
  _LT_AC_TAGVAR(postdeps,$1)=
3951
4028
  ;;
3952
4029
 
 
4030
linux*)
 
4031
  case `$CC -V 2>&1 | sed 5q` in
 
4032
  *Sun\ C*)
 
4033
    # Sun C++ 5.9
 
4034
    #
 
4035
    # The more standards-conforming stlport4 library is
 
4036
    # incompatible with the Cstd library. Avoid specifying
 
4037
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4038
    # -library=stlport4 depends on it.
 
4039
    case " $CXX $CXXFLAGS " in
 
4040
    *" -library=stlport4 "*)
 
4041
      solaris_use_stlport4=yes
 
4042
      ;;
 
4043
    esac
 
4044
    if test "$solaris_use_stlport4" != yes; then
 
4045
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4046
    fi
 
4047
    ;;
 
4048
  esac
 
4049
  ;;
 
4050
 
3953
4051
solaris*)
3954
4052
  case $cc_basename in
3955
4053
  CC*)
 
4054
    # The more standards-conforming stlport4 library is
 
4055
    # incompatible with the Cstd library. Avoid specifying
 
4056
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4057
    # -library=stlport4 depends on it.
 
4058
    case " $CXX $CXXFLAGS " in
 
4059
    *" -library=stlport4 "*)
 
4060
      solaris_use_stlport4=yes
 
4061
      ;;
 
4062
    esac
 
4063
 
3956
4064
    # Adding this requires a known-good setup of shared libraries for
3957
4065
    # Sun compiler versions before 5.6, else PIC objects from an old
3958
4066
    # archive will be linked into the output, leading to subtle bugs.
3959
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4067
    if test "$solaris_use_stlport4" != yes; then
 
4068
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4069
    fi
3960
4070
    ;;
3961
4071
  esac
3962
4072
  ;;
3963
4073
esac
3964
4074
])
3965
 
 
3966
4075
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3967
4076
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3968
4077
esac
4005
4114
_LT_AC_TAGVAR(objext, $1)=$objext
4006
4115
 
4007
4116
# Code to be used in simple compile tests
4008
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4117
lt_simple_compile_test_code="\
 
4118
      subroutine t
 
4119
      return
 
4120
      end
 
4121
"
4009
4122
 
4010
4123
# Code to be used in simple link tests
4011
 
lt_simple_link_test_code="      program t\n      end\n"
 
4124
lt_simple_link_test_code="\
 
4125
      program t
 
4126
      end
 
4127
"
4012
4128
 
4013
4129
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4014
4130
_LT_AC_SYS_COMPILER
4040
4156
    postinstall_cmds='$RANLIB $lib'
4041
4157
  fi
4042
4158
  ;;
4043
 
aix4* | aix5*)
 
4159
aix[[4-9]]*)
4044
4160
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4045
4161
    test "$enable_shared" = yes && enable_static=no
4046
4162
  fi
4087
4203
_LT_AC_TAGVAR(objext, $1)=$objext
4088
4204
 
4089
4205
# Code to be used in simple compile tests
4090
 
lt_simple_compile_test_code="class foo {}\n"
 
4206
lt_simple_compile_test_code="class foo {}"
4091
4207
 
4092
4208
# Code to be used in simple link tests
4093
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4209
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4094
4210
 
4095
4211
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4096
4212
_LT_AC_SYS_COMPILER
4143
4259
_LT_AC_TAGVAR(objext, $1)=$objext
4144
4260
 
4145
4261
# Code to be used in simple compile tests
4146
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4262
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4147
4263
 
4148
4264
# Code to be used in simple link tests
4149
4265
lt_simple_link_test_code="$lt_simple_compile_test_code"
4217
4333
    _LT_AC_TAGVAR(predeps, $1) \
4218
4334
    _LT_AC_TAGVAR(postdeps, $1) \
4219
4335
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4336
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4220
4337
    _LT_AC_TAGVAR(archive_cmds, $1) \
4221
4338
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4222
4339
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4232
4349
    _LT_AC_TAGVAR(module_cmds, $1) \
4233
4350
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4234
4351
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4352
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4235
4353
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4236
4354
    _LT_AC_TAGVAR(include_expsyms, $1); do
4237
4355
 
4278
4396
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4279
4397
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4280
4398
#
4281
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4399
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4282
4400
# Free Software Foundation, Inc.
4283
4401
#
4284
4402
# This file is part of GNU Libtool:
4515
4633
# shared library.
4516
4634
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4517
4635
 
 
4636
# The directories searched by this compiler when creating a shared
 
4637
# library
 
4638
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4639
 
4518
4640
# The library search path used internally by the compiler when linking
4519
4641
# a shared library.
4520
4642
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4603
4725
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4604
4726
 
4605
4727
# Fix the shell variable \$srcfile for the compiler.
4606
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4728
fix_srcfile_path=$lt_fix_srcfile_path
4607
4729
 
4608
4730
# Set to yes if exported symbols are required.
4609
4731
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4686
4808
# ---------------------------------
4687
4809
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4688
4810
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4811
AC_REQUIRE([LT_AC_PROG_SED])
4689
4812
AC_REQUIRE([AC_PROG_NM])
4690
4813
AC_REQUIRE([AC_OBJEXT])
4691
4814
# Check for command to grab the raw symbol name followed by C symbol from nm.
4722
4845
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4723
4846
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4724
4847
  ;;
4725
 
linux*)
 
4848
linux* | k*bsd*-gnu)
4726
4849
  if test "$host_cpu" = ia64; then
4727
4850
    symcode='[[ABCDGIRSTW]]'
4728
4851
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4863
4986
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4864
4987
    cat conftest.$ac_ext >&5
4865
4988
  fi
4866
 
  rm -f conftest* conftst*
 
4989
  rm -rf conftest* conftst*
4867
4990
 
4868
4991
  # Do not use the global_symbol_pipe unless it works.
4869
4992
  if test "$pipe_works" = yes; then
4912
5035
      # like `-m68040'.
4913
5036
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4914
5037
      ;;
4915
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5038
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4916
5039
      # PIC is the default for these OSes.
4917
5040
      ;;
4918
 
    mingw* | os2* | pw32*)
 
5041
    mingw* | cygwin* | os2* | pw32*)
4919
5042
      # This hack is so that the source file can tell whether it is being
4920
5043
      # built for inclusion in a dll (and should export symbols for example).
4921
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5044
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5045
      # (--disable-auto-import) libraries
 
5046
      m4_if([$1], [GCJ], [],
 
5047
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4922
5048
      ;;
4923
5049
    darwin* | rhapsody*)
4924
5050
      # PIC is the default on this platform
4929
5055
      # DJGPP does not support shared libraries at all
4930
5056
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4931
5057
      ;;
4932
 
    interix3*)
 
5058
    interix[[3-9]]*)
4933
5059
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4934
5060
      # Instead, we relocate shared libraries at runtime.
4935
5061
      ;;
4955
5081
    esac
4956
5082
  else
4957
5083
    case $host_os in
4958
 
      aix4* | aix5*)
 
5084
      aix[[4-9]]*)
4959
5085
        # All AIX code is PIC.
4960
5086
        if test "$host_cpu" = ia64; then
4961
5087
          # AIX 5 now supports IA64 processor
4995
5121
            ;;
4996
5122
        esac
4997
5123
        ;;
4998
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5124
      freebsd* | dragonfly*)
4999
5125
        # FreeBSD uses GNU C++
5000
5126
        ;;
5001
5127
      hpux9* | hpux10* | hpux11*)
5038
5164
            ;;
5039
5165
        esac
5040
5166
        ;;
5041
 
      linux*)
 
5167
      linux* | k*bsd*-gnu)
5042
5168
        case $cc_basename in
5043
5169
          KCC*)
5044
5170
            # KAI C++ Compiler
5051
5177
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5052
5178
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5053
5179
            ;;
5054
 
          pgCC*)
 
5180
          pgCC* | pgcpp*)
5055
5181
            # Portland Group C++ compiler.
5056
5182
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5057
5183
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5065
5191
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5066
5192
            ;;
5067
5193
          *)
 
5194
            case `$CC -V 2>&1 | sed 5q` in
 
5195
            *Sun\ C*)
 
5196
              # Sun C++ 5.9
 
5197
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5198
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5199
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5200
              ;;
 
5201
            esac
5068
5202
            ;;
5069
5203
        esac
5070
5204
        ;;
5081
5215
            ;;
5082
5216
        esac
5083
5217
        ;;
5084
 
      netbsd*)
 
5218
      netbsd* | netbsdelf*-gnu)
5085
5219
        ;;
5086
5220
      osf3* | osf4* | osf5*)
5087
5221
        case $cc_basename in
5185
5319
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5186
5320
      ;;
5187
5321
 
5188
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5322
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5189
5323
      # PIC is the default for these OSes.
5190
5324
      ;;
5191
5325
 
5192
 
    mingw* | pw32* | os2*)
 
5326
    mingw* | cygwin* | pw32* | os2*)
5193
5327
      # This hack is so that the source file can tell whether it is being
5194
5328
      # built for inclusion in a dll (and should export symbols for example).
5195
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5329
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5330
      # (--disable-auto-import) libraries
 
5331
      m4_if([$1], [GCJ], [],
 
5332
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5196
5333
      ;;
5197
5334
 
5198
5335
    darwin* | rhapsody*)
5201
5338
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5202
5339
      ;;
5203
5340
 
5204
 
    interix3*)
 
5341
    interix[[3-9]]*)
5205
5342
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5206
5343
      # Instead, we relocate shared libraries at runtime.
5207
5344
      ;;
5259
5396
       esac
5260
5397
       ;;
5261
5398
 
5262
 
    mingw* | pw32* | os2*)
 
5399
    mingw* | cygwin* | pw32* | os2*)
5263
5400
      # This hack is so that the source file can tell whether it is being
5264
5401
      # built for inclusion in a dll (and should export symbols for example).
5265
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5402
      m4_if([$1], [GCJ], [],
 
5403
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5266
5404
      ;;
5267
5405
 
5268
5406
    hpux9* | hpux10* | hpux11*)
5292
5430
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5293
5431
      ;;
5294
5432
 
5295
 
    linux*)
 
5433
    linux* | k*bsd*-gnu)
5296
5434
      case $cc_basename in
5297
5435
      icc* | ecc*)
5298
5436
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5311
5449
        # All Alpha code is PIC.
5312
5450
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5313
5451
        ;;
 
5452
      *)
 
5453
        case `$CC -V 2>&1 | sed 5q` in
 
5454
        *Sun\ C*)
 
5455
          # Sun C 5.9
 
5456
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5457
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5458
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5459
          ;;
 
5460
        *Sun\ F*)
 
5461
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5462
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5463
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5464
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5465
          ;;
 
5466
        esac
 
5467
        ;;
5314
5468
      esac
5315
5469
      ;;
5316
5470
 
5320
5474
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5321
5475
      ;;
5322
5476
 
 
5477
    rdos*)
 
5478
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5479
      ;;
 
5480
 
5323
5481
    solaris*)
5324
5482
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5325
5483
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5379
5537
#
5380
5538
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5381
5539
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5382
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5540
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5383
5541
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5384
5542
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5385
5543
     "" | " "*) ;;
5403
5561
#
5404
5562
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5405
5563
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5406
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5564
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5407
5565
  $lt_tmp_static_flag,
5408
5566
  [],
5409
5567
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5414
5572
# ------------------------------------
5415
5573
# See if the linker supports building shared libraries.
5416
5574
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5417
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5575
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5576
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5418
5577
ifelse([$1],[CXX],[
5419
5578
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5420
5579
  case $host_os in
5421
 
  aix4* | aix5*)
 
5580
  aix[[4-9]]*)
5422
5581
    # If we're using GNU nm, then we don't want the "-C" option.
5423
5582
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5424
5583
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5431
5590
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5432
5591
  ;;
5433
5592
  cygwin* | mingw*)
5434
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5593
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5594
  ;;
 
5595
  linux* | k*bsd*-gnu)
 
5596
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5435
5597
  ;;
5436
5598
  *)
5437
5599
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5438
5600
  ;;
5439
5601
  esac
 
5602
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5440
5603
],[
5441
5604
  runpath_var=
5442
5605
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5467
5630
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5468
5631
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5469
5632
  # as well as any symbol that contains `d'.
5470
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5633
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5471
5634
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5472
5635
  # platforms (ab)use it in PIC code, but their linkers get confused if
5473
5636
  # the symbol is explicitly referenced.  Since portable code cannot
5474
5637
  # rely on this symbol name, it's probably fine to never include it in
5475
5638
  # preloaded symbol tables.
 
5639
  # Exclude shared library initialization/finalization symbols.
 
5640
dnl Note also adjust exclude_expsyms for C++ above.
5476
5641
  extract_expsyms_cmds=
5477
5642
  # Just being paranoid about ensuring that cc_basename is set.
5478
5643
  _LT_CC_BASENAME([$compiler])
5522
5687
 
5523
5688
    # See if GNU ld supports shared libraries.
5524
5689
    case $host_os in
5525
 
    aix3* | aix4* | aix5*)
 
5690
    aix[[3-9]]*)
5526
5691
      # On AIX/PPC, the GNU linker is very broken
5527
5692
      if test "$host_cpu" != ia64; then
5528
5693
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5570
5735
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5571
5736
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5572
5737
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5573
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5738
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5574
5739
 
5575
5740
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5576
5741
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5588
5753
      fi
5589
5754
      ;;
5590
5755
 
5591
 
    interix3*)
 
5756
    interix[[3-9]]*)
5592
5757
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5593
5758
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5594
5759
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5603
5768
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5604
5769
      ;;
5605
5770
 
5606
 
    linux*)
 
5771
    gnu* | linux* | k*bsd*-gnu)
5607
5772
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5608
5773
        tmp_addflag=
5609
5774
        case $cc_basename,$host_cpu in
5621
5786
        ifc* | ifort*)                  # Intel Fortran compiler
5622
5787
          tmp_addflag=' -nofor_main' ;;
5623
5788
        esac
5624
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5789
        case `$CC -V 2>&1 | sed 5q` in
 
5790
        *Sun\ C*)                       # Sun C 5.9
 
5791
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5792
          tmp_sharedflag='-G' ;;
 
5793
        *Sun\ F*)                       # Sun Fortran 8.3
 
5794
          tmp_sharedflag='-G' ;;
 
5795
        *)
 
5796
          tmp_sharedflag='-shared' ;;
 
5797
        esac
 
5798
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5625
5799
 
5626
5800
        if test $supports_anon_versioning = yes; then
5627
5801
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5628
5802
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5629
5803
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5630
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5804
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5631
5805
        fi
 
5806
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5632
5807
      else
5633
5808
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5634
5809
      fi
5635
5810
      ;;
5636
5811
 
5637
 
    netbsd*)
 
5812
    netbsd* | netbsdelf*-gnu)
5638
5813
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5639
5814
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5640
5815
        wlarc=
5667
5842
 
5668
5843
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5669
5844
      case `$LD -v 2>&1` in
5670
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5845
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5671
5846
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5672
5847
        cat <<_LT_EOF 1>&2
5673
5848
 
5732
5907
      fi
5733
5908
      ;;
5734
5909
 
5735
 
    aix4* | aix5*)
 
5910
    aix[[4-9]]*)
5736
5911
      if test "$host_cpu" = ia64; then
5737
5912
        # On IA64, the linker does run time linking by default, so we don't
5738
5913
        # have to do anything special.
5752
5927
        # Test if we are trying to use run time linking or normal
5753
5928
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5754
5929
        # need to do runtime linking.
5755
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5930
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5756
5931
          for ld_flag in $LDFLAGS; do
5757
5932
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5758
5933
            aix_use_runtimelinking=yes
5786
5961
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5787
5962
          then
5788
5963
          # We have reworked collect2
5789
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5964
          :
5790
5965
          else
5791
5966
          # We have old collect2
5792
5967
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5879
6054
      # The linker will automatically build a .lib file if we build a DLL.
5880
6055
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5881
6056
      # FIXME: Should let the user specify the lib program.
5882
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6057
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5883
6058
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5884
6059
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5885
6060
      ;;
5912
6087
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5913
6088
    if test "$GCC" = yes ; then
5914
6089
        output_verbose_link_cmd='echo'
5915
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5916
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5917
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5918
 
      _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}'
5919
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6090
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6091
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6092
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6093
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
5920
6094
    else
5921
6095
      case $cc_basename in
5922
6096
        xlc*)
5923
6097
         output_verbose_link_cmd='echo'
5924
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6098
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5925
6099
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5926
6100
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5927
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6101
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5928
6102
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5929
6103
          ;;
5930
6104
       *)
5964
6138
      ;;
5965
6139
 
5966
6140
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5967
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6141
    freebsd* | dragonfly*)
5968
6142
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5969
6143
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5970
6144
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6066
6240
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6067
6241
      ;;
6068
6242
 
6069
 
    netbsd*)
 
6243
    netbsd* | netbsdelf*-gnu)
6070
6244
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6071
6245
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6072
6246
      else
6086
6260
      ;;
6087
6261
 
6088
6262
    openbsd*)
6089
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6090
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6091
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6092
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6093
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6094
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6095
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6263
      if test -f /usr/libexec/ld.so; then
 
6264
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6265
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6266
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6267
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6268
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6269
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6270
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6271
        else
 
6272
          case $host_os in
 
6273
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6274
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6275
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6276
             ;;
 
6277
           *)
 
6278
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6279
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6280
             ;;
 
6281
          esac
 
6282
        fi
6096
6283
      else
6097
 
       case $host_os in
6098
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6099
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6100
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6101
 
           ;;
6102
 
         *)
6103
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6104
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6105
 
           ;;
6106
 
       esac
 
6284
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6107
6285
      fi
6108
6286
      ;;
6109
6287
 
6162
6340
      case $host_os in
6163
6341
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6164
6342
      *)
6165
 
        # The compiler driver will combine linker options so we
6166
 
        # cannot just pass the convience library names through
6167
 
        # without $wl, iff we do not link with $LD.
6168
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6343
        # The compiler driver will combine and reorder linker options,
 
6344
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6345
        # but is careful enough not to reorder.
6169
6346
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6170
 
        case $wlarc in
6171
 
        '')
6172
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6173
 
        *)
6174
 
          _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' ;;
6175
 
        esac ;;
 
6347
        if test "$GCC" = yes; then
 
6348
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6349
        else
 
6350
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6351
        fi
 
6352
        ;;
6176
6353
      esac
6177
6354
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6178
6355
      ;;
6229
6406
      fi
6230
6407
      ;;
6231
6408
 
6232
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6409
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6233
6410
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6234
6411
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6235
6412
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6304
6481
      # to ld, don't add -lc before -lgcc.
6305
6482
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6306
6483
      $rm conftest*
6307
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6484
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6308
6485
 
6309
6486
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6310
6487
        soname=conftest
6407
6584
[AC_CHECK_TOOL(RC, windres, no)
6408
6585
])
6409
6586
 
 
6587
 
 
6588
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6589
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6590
 
 
6591
# _AS_TEST_PREPARE
 
6592
# ----------------
 
6593
m4_ifndef([_AS_TEST_PREPARE],
 
6594
[m4_defun([_AS_TEST_PREPARE],
 
6595
[if test -x / >/dev/null 2>&1; then
 
6596
  as_executable_p='test -x'
 
6597
else
 
6598
  as_executable_p='test -f'
 
6599
fi
 
6600
])])# _AS_TEST_PREPARE
 
6601
 
 
6602
# AS_EXECUTABLE_P
 
6603
# ---------------
 
6604
# Check whether a file is executable.
 
6605
m4_ifndef([AS_EXECUTABLE_P],
 
6606
[m4_defun([AS_EXECUTABLE_P],
 
6607
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6608
$as_executable_p $1[]dnl
 
6609
])])# AS_EXECUTABLE_P
 
6610
 
6410
6611
# NOTE: This macro has been submitted for inclusion into   #
6411
6612
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6412
6613
#  a released version of Autoconf we should remove this    #
6427
6628
  test -z "$as_dir" && as_dir=.
6428
6629
  for lt_ac_prog in sed gsed; do
6429
6630
    for ac_exec_ext in '' $ac_executable_extensions; do
6430
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6631
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6431
6632
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6432
6633
      fi
6433
6634
    done
6434
6635
  done
6435
6636
done
 
6637
IFS=$as_save_IFS
6436
6638
lt_ac_max=0
6437
6639
lt_ac_count=0
6438
6640
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6465
6667
done
6466
6668
])
6467
6669
SED=$lt_cv_path_SED
 
6670
AC_SUBST([SED])
6468
6671
AC_MSG_RESULT([$SED])
6469
6672
])
6470
6673
 
6471
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6674
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6472
6675
#
6473
6676
# This file is free software; the Free Software Foundation
6474
6677
# gives unlimited permission to copy and/or distribute it,
6478
6681
# ----------------------------
6479
6682
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6480
6683
# generated from the m4 files accompanying Automake X.Y.
6481
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6684
# (This private macro should not be called outside this file.)
 
6685
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6686
[am__api_version='1.10'
 
6687
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6688
dnl require some minimum version.  Point them to the right macro.
 
6689
m4_if([$1], [1.10.1], [],
 
6690
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6691
])
 
6692
 
 
6693
# _AM_AUTOCONF_VERSION(VERSION)
 
6694
# -----------------------------
 
6695
# aclocal traces this macro to find the Autoconf version.
 
6696
# This is a private macro too.  Using m4_define simplifies
 
6697
# the logic in aclocal, which can simply ignore this definition.
 
6698
m4_define([_AM_AUTOCONF_VERSION], [])
6482
6699
 
6483
6700
# AM_SET_CURRENT_AUTOMAKE_VERSION
6484
6701
# -------------------------------
6485
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6702
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6486
6703
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6487
6704
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6488
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6705
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
6706
m4_ifndef([AC_AUTOCONF_VERSION],
 
6707
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
6708
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6489
6709
 
6490
6710
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6491
6711
 
6542
6762
 
6543
6763
# AM_CONDITIONAL                                            -*- Autoconf -*-
6544
6764
 
6545
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6765
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6546
6766
# Free Software Foundation, Inc.
6547
6767
#
6548
6768
# This file is free software; the Free Software Foundation
6549
6769
# gives unlimited permission to copy and/or distribute it,
6550
6770
# with or without modifications, as long as this notice is preserved.
6551
6771
 
6552
 
# serial 7
 
6772
# serial 8
6553
6773
 
6554
6774
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6555
6775
# -------------------------------------
6558
6778
[AC_PREREQ(2.52)dnl
6559
6779
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6560
6780
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6561
 
AC_SUBST([$1_TRUE])
6562
 
AC_SUBST([$1_FALSE])
 
6781
AC_SUBST([$1_TRUE])dnl
 
6782
AC_SUBST([$1_FALSE])dnl
 
6783
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6784
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6563
6785
if $2; then
6564
6786
  $1_TRUE=
6565
6787
  $1_FALSE='#'
6573
6795
Usually this means the macro was only invoked conditionally.]])
6574
6796
fi])])
6575
6797
 
6576
 
 
6577
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6798
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6578
6799
# Free Software Foundation, Inc.
6579
6800
#
6580
6801
# This file is free software; the Free Software Foundation
6581
6802
# gives unlimited permission to copy and/or distribute it,
6582
6803
# with or without modifications, as long as this notice is preserved.
6583
6804
 
6584
 
# serial 8
 
6805
# serial 9
6585
6806
 
6586
6807
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6587
6808
# written in clear, in which case automake, when reading aclocal.m4,
6609
6830
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6610
6831
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6611
6832
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6833
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6612
6834
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6613
6835
                   [depcc="$$1"   am_compiler_list=])
6614
6836
 
6674
6896
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6675
6897
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6676
6898
         >/dev/null 2>conftest.err &&
 
6899
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6677
6900
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6678
6901
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6679
6902
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6726
6949
  AMDEPBACKSLASH='\'
6727
6950
fi
6728
6951
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6729
 
AC_SUBST([AMDEPBACKSLASH])
 
6952
AC_SUBST([AMDEPBACKSLASH])dnl
 
6953
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6730
6954
])
6731
6955
 
6732
6956
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6751
6975
  # some people rename them; so instead we look at the file content.
6752
6976
  # Grep'ing the first line is not enough: some people post-process
6753
6977
  # each Makefile.in and add a new line on top of each file to say so.
6754
 
  # So let's grep whole file.
6755
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6978
  # Grep'ing the whole file is not good either: AIX grep has a line
 
6979
  # limit of 2048, but all sed's we know have understand at least 4000.
 
6980
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6756
6981
    dirpart=`AS_DIRNAME("$mf")`
6757
6982
  else
6758
6983
    continue
6811
7036
 
6812
7037
# Do all the work for Automake.                             -*- Autoconf -*-
6813
7038
 
6814
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6815
 
# Free Software Foundation, Inc.
 
7039
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7040
# 2005, 2006, 2008 Free Software Foundation, Inc.
6816
7041
#
6817
7042
# This file is free software; the Free Software Foundation
6818
7043
# gives unlimited permission to copy and/or distribute it,
6819
7044
# with or without modifications, as long as this notice is preserved.
6820
7045
 
6821
 
# serial 12
 
7046
# serial 13
6822
7047
 
6823
7048
# This macro actually does too much.  Some checks are only needed if
6824
7049
# your package does certain things.  But this isn't really a big deal.
6835
7060
# arguments mandatory, and then we can depend on a new Autoconf
6836
7061
# release and drop the old call support.
6837
7062
AC_DEFUN([AM_INIT_AUTOMAKE],
6838
 
[AC_PREREQ([2.58])dnl
 
7063
[AC_PREREQ([2.60])dnl
6839
7064
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6840
7065
dnl the ones we care about.
6841
7066
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6842
7067
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6843
7068
AC_REQUIRE([AC_PROG_INSTALL])dnl
6844
 
# test to see if srcdir already configured
6845
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6846
 
   test -f $srcdir/config.status; then
6847
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7069
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7070
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7071
  # is not polluted with repeated "-I."
 
7072
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7073
  # test to see if srcdir already configured
 
7074
  if test -f $srcdir/config.status; then
 
7075
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7076
  fi
6848
7077
fi
6849
7078
 
6850
7079
# test whether we have cygpath
6864
7093
 AC_SUBST([PACKAGE], [$1])dnl
6865
7094
 AC_SUBST([VERSION], [$2])],
6866
7095
[_AM_SET_OPTIONS([$1])dnl
 
7096
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7097
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7098
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6867
7099
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6868
7100
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6869
7101
 
6899
7131
                  [_AM_DEPENDENCIES(CXX)],
6900
7132
                  [define([AC_PROG_CXX],
6901
7133
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7134
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7135
                  [_AM_DEPENDENCIES(OBJC)],
 
7136
                  [define([AC_PROG_OBJC],
 
7137
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6902
7138
])
6903
7139
])
6904
7140
 
6912
7148
# our stamp files there.
6913
7149
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6914
7150
[# Compute $1's index in $config_headers.
 
7151
_am_arg=$1
6915
7152
_am_stamp_count=1
6916
7153
for _am_header in $config_headers :; do
6917
7154
  case $_am_header in
6918
 
    $1 | $1:* )
 
7155
    $_am_arg | $_am_arg:* )
6919
7156
      break ;;
6920
7157
    * )
6921
7158
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6922
7159
  esac
6923
7160
done
6924
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7161
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
6925
7162
 
6926
7163
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
6927
7164
#
6934
7171
# Define $install_sh.
6935
7172
AC_DEFUN([AM_PROG_INSTALL_SH],
6936
7173
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6937
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7174
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6938
7175
AC_SUBST(install_sh)])
6939
7176
 
6940
7177
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7012
7249
 
7013
7250
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7014
7251
 
7015
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7252
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7016
7253
# Free Software Foundation, Inc.
7017
7254
#
7018
7255
# This file is free software; the Free Software Foundation
7019
7256
# gives unlimited permission to copy and/or distribute it,
7020
7257
# with or without modifications, as long as this notice is preserved.
7021
7258
 
7022
 
# serial 4
 
7259
# serial 5
7023
7260
 
7024
7261
# AM_MISSING_PROG(NAME, PROGRAM)
7025
7262
# ------------------------------
7035
7272
# If it does, set am_missing_run to use it, otherwise, to nothing.
7036
7273
AC_DEFUN([AM_MISSING_HAS_RUN],
7037
7274
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7275
AC_REQUIRE_AUX_FILE([missing])dnl
7038
7276
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7039
7277
# Use eval to expand $SHELL
7040
7278
if eval "$MISSING --run true"; then
7045
7283
fi
7046
7284
])
7047
7285
 
7048
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7286
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7049
7287
#
7050
7288
# This file is free software; the Free Software Foundation
7051
7289
# gives unlimited permission to copy and/or distribute it,
7053
7291
 
7054
7292
# AM_PROG_MKDIR_P
7055
7293
# ---------------
7056
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7057
 
#
7058
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7059
 
# created by `make install' are always world readable, even if the
7060
 
# installer happens to have an overly restrictive umask (e.g. 077).
7061
 
# This was a mistake.  There are at least two reasons why we must not
7062
 
# use `-m 0755':
7063
 
#   - it causes special bits like SGID to be ignored,
7064
 
#   - it may be too restrictive (some setups expect 775 directories).
7065
 
#
7066
 
# Do not use -m 0755 and let people choose whatever they expect by
7067
 
# setting umask.
7068
 
#
7069
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7070
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7071
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7072
 
# concurrently, both version can detect that a/ is missing, but only
7073
 
# one can create it and the other will error out.  Consequently we
7074
 
# restrict ourselves to GNU make (using the --version option ensures
7075
 
# this.)
 
7294
# Check for `mkdir -p'.
7076
7295
AC_DEFUN([AM_PROG_MKDIR_P],
7077
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7078
 
  # We used to keeping the `.' as first argument, in order to
7079
 
  # allow $(mkdir_p) to be used without argument.  As in
7080
 
  #   $(mkdir_p) $(somedir)
7081
 
  # where $(somedir) is conditionally defined.  However this is wrong
7082
 
  # for two reasons:
7083
 
  #  1. if the package is installed by a user who cannot write `.'
7084
 
  #     make install will fail,
7085
 
  #  2. the above comment should most certainly read
7086
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7087
 
  #     so it does not work when $(somedir) is undefined and
7088
 
  #     $(DESTDIR) is not.
7089
 
  #  To support the latter case, we have to write
7090
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7091
 
  #  so the `.' trick is pointless.
7092
 
  mkdir_p='mkdir -p --'
7093
 
else
7094
 
  # On NextStep and OpenStep, the `mkdir' command does not
7095
 
  # recognize any option.  It will interpret all options as
7096
 
  # directories to create, and then abort because `.' already
7097
 
  # exists.
7098
 
  for d in ./-p ./--version;
7099
 
  do
7100
 
    test -d $d && rmdir $d
7101
 
  done
7102
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7103
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7104
 
    mkdir_p='$(mkinstalldirs)'
7105
 
  else
7106
 
    mkdir_p='$(install_sh) -d'
7107
 
  fi
7108
 
fi
7109
 
AC_SUBST([mkdir_p])])
 
7296
[AC_PREREQ([2.60])dnl
 
7297
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7298
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7299
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7300
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7301
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7302
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7303
dnl adjustment using top_builddir (which is defined more often than
 
7304
dnl MKDIR_P).
 
7305
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7306
case $mkdir_p in
 
7307
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7308
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7309
esac
 
7310
])
7110
7311
 
7111
7312
# Helper functions for option handling.                     -*- Autoconf -*-
7112
7313
 
7218
7419
if test "$cross_compiling" != no; then
7219
7420
  AC_CHECK_TOOL([STRIP], [strip], :)
7220
7421
fi
7221
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7422
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7222
7423
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7223
7424
 
 
7425
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7426
#
 
7427
# This file is free software; the Free Software Foundation
 
7428
# gives unlimited permission to copy and/or distribute it,
 
7429
# with or without modifications, as long as this notice is preserved.
 
7430
 
 
7431
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7432
# ---------------------------
 
7433
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
7434
# This macro is traced by Automake.
 
7435
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7436
 
7224
7437
# Check how to create a tarball.                            -*- Autoconf -*-
7225
7438
 
7226
7439
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.