~ubuntu-branches/ubuntu/precise/libdebian-installer/precise-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2007-10-20 03:34:24 UTC
  • Revision ID: james.westby@ubuntu.com-20071020033424-2wa0awrt1uc0h9ud
Tags: 0.53
* Remove compatibility with ancient dpkg-architecture; build-depend on
  newer dpkg-dev instead.
* archdetect: Add the powerpc/cell platform.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
14
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
20
 
16
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
21
# serial 51 Debian 1.5.24-1 AC_PROG_LIBTOOL
17
22
 
18
23
 
19
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
176
181
test -z "$ac_objext" && ac_objext=o
177
182
 
178
183
# Determine commands to create old-style static archives.
179
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
184
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
180
185
old_postinstall_cmds='chmod 644 $oldlib'
181
186
old_postuninstall_cmds=
182
187
 
263
268
# Check for compiler boilerplate output or warnings with
264
269
# the simple compiler test code.
265
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
 
[ac_outfile=conftest.$ac_objext
267
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
271
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
272
ac_outfile=conftest.$ac_objext
 
273
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268
274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
275
_lt_compiler_boilerplate=`cat conftest.err`
270
276
$rm conftest*
276
282
# Check for linker boilerplate output or warnings with
277
283
# the simple link test code.
278
284
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
 
[ac_outfile=conftest.$ac_objext
280
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
285
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
286
ac_outfile=conftest.$ac_objext
 
287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
281
288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
289
_lt_linker_boilerplate=`cat conftest.err`
283
290
$rm conftest*
293
300
# If we don't find anything, use the default library path according
294
301
# to the aix ld manual.
295
302
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
298
 
}'`
 
303
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
304
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
305
lt_aix_libpath_sed='
 
306
    /Import File Strings/,/^$/ {
 
307
        /^0/ {
 
308
            s/^0  *\(.*\)$/\1/
 
309
            p
 
310
        }
 
311
    }'
 
312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
299
313
# Check for a 64-bit object if we didn't find anything.
300
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
301
 
}'`; fi],[])
 
314
if test -z "$aix_libpath"; then
 
315
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
316
fi],[])
302
317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
318
])# _LT_AC_SYS_LIBPATH_AIX
304
319
 
529
544
  rm -rf conftest*
530
545
  ;;
531
546
 
532
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
547
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
548
s390*-*linux*|sparc*-*linux*)
533
549
  # Find out which ABI we are using.
534
550
  echo 'int i;' > conftest.$ac_ext
535
551
  if AC_TRY_EVAL(ac_compile); then
536
552
    case `/usr/bin/file conftest.o` in
537
553
    *32-bit*)
538
554
      case $host in
 
555
        x86_64-*kfreebsd*-gnu)
 
556
          LD="${LD-ld} -m elf_i386_fbsd"
 
557
          ;;
539
558
        x86_64-*linux*)
540
559
          LD="${LD-ld} -m elf_i386"
541
560
          ;;
552
571
      ;;
553
572
    *64-bit*)
554
573
      case $host in
 
574
        x86_64-*kfreebsd*-gnu)
 
575
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
576
          ;;
555
577
        x86_64-*linux*)
556
578
          LD="${LD-ld} -m elf_x86_64"
557
579
          ;;
623
645
AC_CACHE_CHECK([$1], [$2],
624
646
  [$2=no
625
647
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
648
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
627
649
   lt_compiler_flag="$3"
628
650
   # Insert the option either (1) after the last *FLAGS variable, or
629
651
   # (2) before a word containing "conftest.", or (3) at the end.
664
686
# ------------------------------------------------------------
665
687
# Check whether the given compiler option works
666
688
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667
 
[AC_CACHE_CHECK([$1], [$2],
 
689
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
690
AC_CACHE_CHECK([$1], [$2],
668
691
  [$2=no
669
692
   save_LDFLAGS="$LDFLAGS"
670
693
   LDFLAGS="$LDFLAGS $3"
671
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
694
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
672
695
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673
696
     # The linker can only warn and ignore the option if not recognized
674
697
     # So say no if there are warnings
782
805
    fi
783
806
    ;;
784
807
  *)
785
 
    # If test is not a shell built-in, we'll probably end up computing a
786
 
    # maximum length that is only half of the actual maximum length, but
787
 
    # we can't tell.
788
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
808
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
809
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
810
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
811
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
812
    else
 
813
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
814
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790
815
               = "XX$teststring") >/dev/null 2>&1 &&
791
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
 
            lt_cv_sys_max_cmd_len=$new_result &&
793
 
            test $i != 17 # 1/2 MB should be enough
794
 
    do
795
 
      i=`expr $i + 1`
796
 
      teststring=$teststring$teststring
797
 
    done
798
 
    teststring=
799
 
    # Add a significant safety factor because C++ compilers can tack on massive
800
 
    # amounts of additional arguments before passing them to the linker.
801
 
    # It appears as though 1/2 is a usable value.
802
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
816
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
817
              lt_cv_sys_max_cmd_len=$new_result &&
 
818
              test $i != 17 # 1/2 MB should be enough
 
819
      do
 
820
        i=`expr $i + 1`
 
821
        teststring=$teststring$teststring
 
822
      done
 
823
      teststring=
 
824
      # Add a significant safety factor because C++ compilers can tack on massive
 
825
      # amounts of additional arguments before passing them to the linker.
 
826
      # It appears as though 1/2 is a usable value.
 
827
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
828
    fi
803
829
    ;;
804
830
  esac
805
831
])
1026
1052
# ---------------------------------
1027
1053
# Check to see if options -c and -o are simultaneously supported by compiler
1028
1054
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1055
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1056
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030
1057
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031
1058
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032
1059
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1034
1061
   mkdir conftest
1035
1062
   cd conftest
1036
1063
   mkdir out
1037
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1064
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1038
1065
 
1039
1066
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1040
1067
   # Insert the option either (1) after the last *FLAGS variable, or
1174
1201
   darwin*)
1175
1202
       if test -n "$STRIP" ; then
1176
1203
         striplib="$STRIP -x"
 
1204
         old_striplib="$STRIP -S"
1177
1205
         AC_MSG_RESULT([yes])
1178
1206
       else
1179
1207
  AC_MSG_RESULT([no])
1191
1219
# -----------------------------
1192
1220
# PORTME Fill in your ld.so characteristics
1193
1221
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1194
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1222
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1223
AC_MSG_CHECKING([dynamic linker characteristics])
1195
1224
library_names_spec=
1196
1225
libname_spec='lib$name'
1197
1226
soname_spec=
1205
1234
version_type=none
1206
1235
dynamic_linker="$host_os ld.so"
1207
1236
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1237
m4_if($1,[],[
1208
1238
if test "$GCC" = yes; then
1209
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1239
  case $host_os in
 
1240
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1241
    *) lt_awk_arg="/^libraries:/" ;;
 
1242
  esac
 
1243
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1244
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1211
1245
    # if the path contains ";" then we assume it to be the separator
1212
1246
    # otherwise default to the standard path separator (i.e. ":") - it is
1213
1247
    # assumed that no part of a normal pathname contains ";" but that should
1214
1248
    # okay in the real world where ";" in dirpaths is itself problematic.
1215
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1249
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1216
1250
  else
1217
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1251
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1218
1252
  fi
 
1253
  # Ok, now we have the path, separated by spaces, we can step through it
 
1254
  # and add multilib dir if necessary.
 
1255
  lt_tmp_lt_search_path_spec=
 
1256
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1257
  for lt_sys_path in $lt_search_path_spec; do
 
1258
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1259
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1260
    else
 
1261
      test -d "$lt_sys_path" && \
 
1262
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1263
    fi
 
1264
  done
 
1265
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1266
BEGIN {RS=" "; FS="/|\n";} {
 
1267
  lt_foo="";
 
1268
  lt_count=0;
 
1269
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1270
    if ($lt_i != "" && $lt_i != ".") {
 
1271
      if ($lt_i == "..") {
 
1272
        lt_count++;
 
1273
      } else {
 
1274
        if (lt_count == 0) {
 
1275
          lt_foo="/" $lt_i lt_foo;
 
1276
        } else {
 
1277
          lt_count--;
 
1278
        }
 
1279
      }
 
1280
    }
 
1281
  }
 
1282
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1283
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1284
}'`
 
1285
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1219
1286
else
1220
1287
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1221
 
fi
 
1288
fi])
1222
1289
need_lib_prefix=unknown
1223
1290
hardcode_into_libs=no
1224
1291
 
1375
1442
  shlibpath_overrides_runpath=yes
1376
1443
  shlibpath_var=DYLD_LIBRARY_PATH
1377
1444
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1378
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1379
 
  if test "$GCC" = yes; then
1380
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1381
 
  else
1382
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1383
 
  fi
 
1445
  m4_if([$1], [],[
 
1446
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1384
1447
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1385
1448
  ;;
1386
1449
 
1434
1497
    shlibpath_overrides_runpath=no
1435
1498
    hardcode_into_libs=yes
1436
1499
    ;;
1437
 
  freebsd*) # from 4.6 on
 
1500
  *) # from 4.6 on, and DragonFly
1438
1501
    shlibpath_overrides_runpath=yes
1439
1502
    hardcode_into_libs=yes
1440
1503
    ;;
1497
1560
  postinstall_cmds='chmod 555 $lib'
1498
1561
  ;;
1499
1562
 
1500
 
interix3*)
 
1563
interix[[3-9]]*)
1501
1564
  version_type=linux
1502
1565
  need_lib_prefix=no
1503
1566
  need_version=no
1568
1631
 
1569
1632
  # Append ld.so.conf contents to the search path
1570
1633
  if test -f /etc/ld.so.conf; then
1571
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1634
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1572
1635
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1573
1636
  fi
1574
1637
 
1674
1737
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1675
1738
  ;;
1676
1739
 
 
1740
rdos*)
 
1741
  dynamic_linker=no
 
1742
  ;;
 
1743
 
1677
1744
solaris*)
1678
1745
  version_type=linux
1679
1746
  need_lib_prefix=no
1779
1846
# _LT_AC_TAGCONFIG
1780
1847
# ----------------
1781
1848
AC_DEFUN([_LT_AC_TAGCONFIG],
1782
 
[AC_ARG_WITH([tags],
 
1849
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1850
AC_ARG_WITH([tags],
1783
1851
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1784
1852
        [include additional configurations @<:@automatic@:>@])],
1785
1853
    [tagnames="$withval"])
2040
2108
 
2041
2109
# AC_PATH_TOOL_PREFIX
2042
2110
# -------------------
2043
 
# find a file program which can recognise shared library
 
2111
# find a file program which can recognize shared library
2044
2112
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2045
2113
[AC_REQUIRE([AC_PROG_EGREP])dnl
2046
2114
AC_MSG_CHECKING([for $1])
2103
2171
 
2104
2172
# AC_PATH_MAGIC
2105
2173
# -------------
2106
 
# find a file program which can recognise a shared library
 
2174
# find a file program which can recognize a shared library
2107
2175
AC_DEFUN([AC_PATH_MAGIC],
2108
2176
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2109
2177
if test -z "$lt_cv_path_MAGIC_CMD"; then
2250
2318
# how to check for library dependencies
2251
2319
#  -- PORTME fill in with the dynamic library characteristics
2252
2320
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2253
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2321
[AC_CACHE_CHECK([how to recognize dependent libraries],
2254
2322
lt_cv_deplibs_check_method,
2255
2323
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2256
2324
lt_cv_file_magic_test_file=
2289
2357
 
2290
2358
mingw* | pw32*)
2291
2359
  # Base MSYS/MinGW do not provide the 'file' command needed by
2292
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2293
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2294
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2360
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2361
  # unless we find 'file', for example because we are cross-compiling.
 
2362
  if ( file / ) >/dev/null 2>&1; then
 
2363
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2364
    lt_cv_file_magic_cmd='func_win32_libid'
 
2365
  else
 
2366
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2367
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2368
  fi
2295
2369
  ;;
2296
2370
 
2297
2371
darwin* | rhapsody*)
2336
2410
  esac
2337
2411
  ;;
2338
2412
 
2339
 
interix3*)
 
2413
interix[[3-9]]*)
2340
2414
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2341
2415
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2342
2416
  ;;
2386
2460
  lt_cv_deplibs_check_method=pass_all
2387
2461
  ;;
2388
2462
 
 
2463
rdos*)
 
2464
  lt_cv_deplibs_check_method=pass_all
 
2465
  ;;
 
2466
 
2389
2467
solaris*)
2390
2468
  lt_cv_deplibs_check_method=pass_all
2391
2469
  ;;
2438
2516
  lt_cv_path_NM="$NM"
2439
2517
else
2440
2518
  lt_nm_to_check="${ac_tool_prefix}nm"
2441
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2519
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2442
2520
    lt_nm_to_check="$lt_nm_to_check nm"
2443
2521
  fi
2444
2522
  for lt_tmp_nm in $lt_nm_to_check; do
2654
2732
_LT_AC_TAGVAR(objext, $1)=$objext
2655
2733
 
2656
2734
# Code to be used in simple compile tests
2657
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2735
lt_simple_compile_test_code="int some_variable = 0;"
2658
2736
 
2659
2737
# Code to be used in simple link tests
2660
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2738
lt_simple_link_test_code='int main(){return(0);}'
2661
2739
 
2662
2740
_LT_AC_SYS_COMPILER
2663
2741
 
2759
2837
_LT_AC_TAGVAR(objext, $1)=$objext
2760
2838
 
2761
2839
# Code to be used in simple compile tests
2762
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2840
lt_simple_compile_test_code="int some_variable = 0;"
2763
2841
 
2764
2842
# Code to be used in simple link tests
2765
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2843
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2766
2844
 
2767
2845
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2768
2846
_LT_AC_SYS_COMPILER
2908
2986
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2909
2987
        then
2910
2988
          # We have reworked collect2
2911
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2989
          :
2912
2990
        else
2913
2991
          # We have old collect2
2914
2992
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3067
3145
      case $cc_basename in
3068
3146
        xlc*)
3069
3147
         output_verbose_link_cmd='echo'
3070
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3148
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3071
3149
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072
3150
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3073
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3151
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3074
3152
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3075
3153
          ;;
3076
3154
       *)
3153
3231
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3154
3232
 
3155
3233
      case $host_cpu in
3156
 
      hppa*64*|ia64*)
3157
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3158
 
        ;;
 
3234
      hppa*64*|ia64*) ;;
3159
3235
      *)
3160
3236
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3161
3237
        ;;
3223
3299
        ;;
3224
3300
    esac
3225
3301
    ;;
3226
 
  interix3*)
 
3302
  interix[[3-9]]*)
3227
3303
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3228
3304
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229
3305
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3343
3419
        # dependencies.
3344
3420
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3345
3421
        ;;
 
3422
      *)
 
3423
        case `$CC -V 2>&1 | sed 5q` in
 
3424
        *Sun\ C*)
 
3425
          # Sun C++ 5.9
 
3426
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3427
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3428
          _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'
 
3429
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3430
          _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'
 
3431
 
 
3432
          # Not sure whether something based on
 
3433
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3434
          # would be better.
 
3435
          output_verbose_link_cmd='echo'
 
3436
 
 
3437
          # Archives containing C++ object files must be created using
 
3438
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3439
          # necessary to make sure instantiated templates are included
 
3440
          # in the archive.
 
3441
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3442
          ;;
 
3443
        esac
 
3444
        ;;
3346
3445
    esac
3347
3446
    ;;
3348
3447
  lynxos*)
3381
3480
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3382
3481
    ;;
3383
3482
  openbsd*)
3384
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3385
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3386
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3387
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3388
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3389
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3390
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3391
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3483
    if test -f /usr/libexec/ld.so; then
 
3484
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3485
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3486
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3487
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3488
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3489
        _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'
 
3490
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3491
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3492
      fi
 
3493
      output_verbose_link_cmd='echo'
 
3494
    else
 
3495
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3392
3496
    fi
3393
 
    output_verbose_link_cmd='echo'
3394
3497
    ;;
3395
3498
  osf3*)
3396
3499
    case $cc_basename in
3552
3655
        case $host_os in
3553
3656
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3554
3657
          *)
3555
 
            # The C++ compiler is used as linker so we must use $wl
3556
 
            # flag to pass the commands to the underlying system
3557
 
            # linker. We must also pass each convience library through
3558
 
            # to the system linker between allextract/defaultextract.
3559
 
            # The C++ compiler will combine linker options so we
3560
 
            # cannot just pass the convience library names through
3561
 
            # without $wl.
 
3658
            # The compiler driver will combine and reorder linker options,
 
3659
            # but understands `-z linker_flag'.
3562
3660
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3563
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3661
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3564
3662
            ;;
3565
3663
        esac
3566
3664
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3607
3705
          fi
3608
3706
 
3609
3707
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3708
          case $host_os in
 
3709
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3710
          *)
 
3711
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3712
            ;;
 
3713
          esac
3610
3714
        fi
3611
3715
        ;;
3612
3716
    esac
3850
3954
# PORTME: override above test on systems where it is broken
3851
3955
ifelse([$1],[CXX],
3852
3956
[case $host_os in
3853
 
interix3*)
 
3957
interix[[3-9]]*)
3854
3958
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3855
3959
  # hack all around it, let's just trust "g++" to DTRT.
3856
3960
  _LT_AC_TAGVAR(predep_objects,$1)=
3858
3962
  _LT_AC_TAGVAR(postdeps,$1)=
3859
3963
  ;;
3860
3964
 
 
3965
linux*)
 
3966
  case `$CC -V 2>&1 | sed 5q` in
 
3967
  *Sun\ C*)
 
3968
    # Sun C++ 5.9
 
3969
    #
 
3970
    # The more standards-conforming stlport4 library is
 
3971
    # incompatible with the Cstd library. Avoid specifying
 
3972
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3973
    # -library=stlport4 depends on it.
 
3974
    case " $CXX $CXXFLAGS " in
 
3975
    *" -library=stlport4 "*)
 
3976
      solaris_use_stlport4=yes
 
3977
      ;;
 
3978
    esac
 
3979
    if test "$solaris_use_stlport4" != yes; then
 
3980
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3981
    fi
 
3982
    ;;
 
3983
  esac
 
3984
  ;;
 
3985
 
3861
3986
solaris*)
3862
3987
  case $cc_basename in
3863
3988
  CC*)
 
3989
    # The more standards-conforming stlport4 library is
 
3990
    # incompatible with the Cstd library. Avoid specifying
 
3991
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3992
    # -library=stlport4 depends on it.
 
3993
    case " $CXX $CXXFLAGS " in
 
3994
    *" -library=stlport4 "*)
 
3995
      solaris_use_stlport4=yes
 
3996
      ;;
 
3997
    esac
 
3998
 
3864
3999
    # Adding this requires a known-good setup of shared libraries for
3865
4000
    # Sun compiler versions before 5.6, else PIC objects from an old
3866
4001
    # archive will be linked into the output, leading to subtle bugs.
3867
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4002
    if test "$solaris_use_stlport4" != yes; then
 
4003
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4004
    fi
3868
4005
    ;;
3869
4006
  esac
3870
4007
  ;;
3913
4050
_LT_AC_TAGVAR(objext, $1)=$objext
3914
4051
 
3915
4052
# Code to be used in simple compile tests
3916
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4053
lt_simple_compile_test_code="\
 
4054
      subroutine t
 
4055
      return
 
4056
      end
 
4057
"
3917
4058
 
3918
4059
# Code to be used in simple link tests
3919
 
lt_simple_link_test_code="      program t\n      end\n"
 
4060
lt_simple_link_test_code="\
 
4061
      program t
 
4062
      end
 
4063
"
3920
4064
 
3921
4065
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3922
4066
_LT_AC_SYS_COMPILER
3995
4139
_LT_AC_TAGVAR(objext, $1)=$objext
3996
4140
 
3997
4141
# Code to be used in simple compile tests
3998
 
lt_simple_compile_test_code="class foo {}\n"
 
4142
lt_simple_compile_test_code="class foo {}"
3999
4143
 
4000
4144
# Code to be used in simple link tests
4001
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4145
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4002
4146
 
4003
4147
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4004
4148
_LT_AC_SYS_COMPILER
4051
4195
_LT_AC_TAGVAR(objext, $1)=$objext
4052
4196
 
4053
4197
# Code to be used in simple compile tests
4054
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4198
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4055
4199
 
4056
4200
# Code to be used in simple link tests
4057
4201
lt_simple_link_test_code="$lt_simple_compile_test_code"
4140
4284
    _LT_AC_TAGVAR(module_cmds, $1) \
4141
4285
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4142
4286
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4287
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4143
4288
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4144
4289
    _LT_AC_TAGVAR(include_expsyms, $1); do
4145
4290
 
4186
4331
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4187
4332
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4188
4333
#
4189
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4334
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4190
4335
# Free Software Foundation, Inc.
4191
4336
#
4192
4337
# This file is part of GNU Libtool:
4511
4656
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4512
4657
 
4513
4658
# Fix the shell variable \$srcfile for the compiler.
4514
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4659
fix_srcfile_path=$lt_fix_srcfile_path
4515
4660
 
4516
4661
# Set to yes if exported symbols are required.
4517
4662
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4594
4739
# ---------------------------------
4595
4740
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4596
4741
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4742
AC_REQUIRE([LT_AC_PROG_SED])
4597
4743
AC_REQUIRE([AC_PROG_NM])
4598
4744
AC_REQUIRE([AC_OBJEXT])
4599
4745
# Check for command to grab the raw symbol name followed by C symbol from nm.
4820
4966
      # like `-m68040'.
4821
4967
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4822
4968
      ;;
4823
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4969
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4824
4970
      # PIC is the default for these OSes.
4825
4971
      ;;
4826
 
    mingw* | os2* | pw32*)
 
4972
    mingw* | cygwin* | os2* | pw32*)
4827
4973
      # This hack is so that the source file can tell whether it is being
4828
4974
      # built for inclusion in a dll (and should export symbols for example).
 
4975
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4976
      # (--disable-auto-import) libraries
4829
4977
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4830
4978
      ;;
4831
4979
    darwin* | rhapsody*)
4837
4985
      # DJGPP does not support shared libraries at all
4838
4986
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4839
4987
      ;;
4840
 
    interix3*)
 
4988
    interix[[3-9]]*)
4841
4989
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4842
4990
      # Instead, we relocate shared libraries at runtime.
4843
4991
      ;;
4973
5121
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4974
5122
            ;;
4975
5123
          *)
 
5124
            case `$CC -V 2>&1 | sed 5q` in
 
5125
            *Sun\ C*)
 
5126
              # Sun C++ 5.9
 
5127
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5128
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5129
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5130
              ;;
 
5131
            esac
4976
5132
            ;;
4977
5133
        esac
4978
5134
        ;;
5093
5249
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5094
5250
      ;;
5095
5251
 
5096
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5252
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5097
5253
      # PIC is the default for these OSes.
5098
5254
      ;;
5099
5255
 
5100
 
    mingw* | pw32* | os2*)
 
5256
    mingw* | cygwin* | pw32* | os2*)
5101
5257
      # This hack is so that the source file can tell whether it is being
5102
5258
      # built for inclusion in a dll (and should export symbols for example).
 
5259
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5260
      # (--disable-auto-import) libraries
5103
5261
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5104
5262
      ;;
5105
5263
 
5109
5267
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5110
5268
      ;;
5111
5269
 
5112
 
    interix3*)
 
5270
    interix[[3-9]]*)
5113
5271
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5114
5272
      # Instead, we relocate shared libraries at runtime.
5115
5273
      ;;
5167
5325
       esac
5168
5326
       ;;
5169
5327
 
5170
 
    mingw* | pw32* | os2*)
 
5328
    mingw* | cygwin* | pw32* | os2*)
5171
5329
      # This hack is so that the source file can tell whether it is being
5172
5330
      # built for inclusion in a dll (and should export symbols for example).
5173
5331
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5219
5377
        # All Alpha code is PIC.
5220
5378
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5221
5379
        ;;
 
5380
      *)
 
5381
        case `$CC -V 2>&1 | sed 5q` in
 
5382
        *Sun\ C*)
 
5383
          # Sun C 5.9
 
5384
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5385
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5386
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5387
          ;;
 
5388
        *Sun\ F*)
 
5389
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5390
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5391
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5392
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5393
          ;;
 
5394
        esac
 
5395
        ;;
5222
5396
      esac
5223
5397
      ;;
5224
5398
 
5228
5402
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5229
5403
      ;;
5230
5404
 
 
5405
    rdos*)
 
5406
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5407
      ;;
 
5408
 
5231
5409
    solaris*)
5232
5410
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5233
5411
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5322
5500
# ------------------------------------
5323
5501
# See if the linker supports building shared libraries.
5324
5502
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5325
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5503
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5504
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5326
5505
ifelse([$1],[CXX],[
5327
5506
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5328
5507
  case $host_os in
5339
5518
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5340
5519
  ;;
5341
5520
  cygwin* | mingw*)
5342
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5521
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5343
5522
  ;;
5344
5523
  linux* | k*bsd*-gnu)
5345
5524
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5481
5660
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5482
5661
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5483
5662
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5484
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5663
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5485
5664
 
5486
5665
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5487
5666
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5499
5678
      fi
5500
5679
      ;;
5501
5680
 
5502
 
    interix3*)
 
5681
    interix[[3-9]]*)
5503
5682
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5504
5683
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5505
5684
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5514
5693
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5515
5694
      ;;
5516
5695
 
5517
 
    linux* | k*bsd*-gnu)
 
5696
    gnu* | linux* | k*bsd*-gnu)
5518
5697
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5519
5698
        tmp_addflag=
5520
5699
        case $cc_basename,$host_cpu in
5532
5711
        ifc* | ifort*)                  # Intel Fortran compiler
5533
5712
          tmp_addflag=' -nofor_main' ;;
5534
5713
        esac
5535
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5714
        case `$CC -V 2>&1 | sed 5q` in
 
5715
        *Sun\ C*)                       # Sun C 5.9
 
5716
          _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'
 
5717
          tmp_sharedflag='-G' ;;
 
5718
        *Sun\ F*)                       # Sun Fortran 8.3
 
5719
          tmp_sharedflag='-G' ;;
 
5720
        *)
 
5721
          tmp_sharedflag='-shared' ;;
 
5722
        esac
 
5723
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536
5724
 
5537
5725
        if test $supports_anon_versioning = yes; then
5538
5726
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539
5727
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540
5728
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5541
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5729
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5542
5730
        fi
5543
5731
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5544
5732
      else
5579
5767
 
5580
5768
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5581
5769
      case `$LD -v 2>&1` in
5582
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5770
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5583
5771
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5584
5772
        cat <<_LT_EOF 1>&2
5585
5773
 
5698
5886
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5699
5887
          then
5700
5888
          # We have reworked collect2
5701
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5889
          :
5702
5890
          else
5703
5891
          # We have old collect2
5704
5892
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5791
5979
      # The linker will automatically build a .lib file if we build a DLL.
5792
5980
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5793
5981
      # FIXME: Should let the user specify the lib program.
5794
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5982
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5795
5983
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5796
5984
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5797
5985
      ;;
5833
6021
      case $cc_basename in
5834
6022
        xlc*)
5835
6023
         output_verbose_link_cmd='echo'
5836
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6024
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5837
6025
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838
6026
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5839
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6027
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5840
6028
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5841
6029
          ;;
5842
6030
       *)
5998
6186
      ;;
5999
6187
 
6000
6188
    openbsd*)
6001
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6002
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6003
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6004
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6005
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6006
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6007
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6189
      if test -f /usr/libexec/ld.so; then
 
6190
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6191
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6192
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6193
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6194
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6195
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6196
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6197
        else
 
6198
          case $host_os in
 
6199
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6200
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6201
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6202
             ;;
 
6203
           *)
 
6204
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6205
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6206
             ;;
 
6207
          esac
 
6208
        fi
6008
6209
      else
6009
 
       case $host_os in
6010
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6011
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6012
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6013
 
           ;;
6014
 
         *)
6015
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6016
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6017
 
           ;;
6018
 
       esac
 
6210
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6019
6211
      fi
6020
6212
      ;;
6021
6213
 
6074
6266
      case $host_os in
6075
6267
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6076
6268
      *)
6077
 
        # The compiler driver will combine linker options so we
6078
 
        # cannot just pass the convience library names through
6079
 
        # without $wl, iff we do not link with $LD.
6080
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6269
        # The compiler driver will combine and reorder linker options,
 
6270
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6271
        # but is careful enough not to reorder.
6081
6272
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6082
 
        case $wlarc in
6083
 
        '')
6084
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6085
 
        *)
6086
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6087
 
        esac ;;
 
6273
        if test "$GCC" = yes; then
 
6274
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6275
        else
 
6276
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6277
        fi
 
6278
        ;;
6088
6279
      esac
6089
6280
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6090
6281
      ;;
6141
6332
      fi
6142
6333
      ;;
6143
6334
 
6144
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6335
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6145
6336
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6146
6337
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6147
6338
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6216
6407
      # to ld, don't add -lc before -lgcc.
6217
6408
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6218
6409
      $rm conftest*
6219
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6410
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6220
6411
 
6221
6412
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6222
6413
        soname=conftest
6319
6510
[AC_CHECK_TOOL(RC, windres, no)
6320
6511
])
6321
6512
 
 
6513
 
 
6514
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6515
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6516
 
 
6517
# _AS_TEST_PREPARE
 
6518
# ----------------
 
6519
m4_ifndef([_AS_TEST_PREPARE],
 
6520
[m4_defun([_AS_TEST_PREPARE],
 
6521
[if test -x / >/dev/null 2>&1; then
 
6522
  as_executable_p='test -x'
 
6523
else
 
6524
  as_executable_p='test -f'
 
6525
fi
 
6526
])])# _AS_TEST_PREPARE
 
6527
 
 
6528
# AS_EXECUTABLE_P
 
6529
# ---------------
 
6530
# Check whether a file is executable.
 
6531
m4_ifndef([AS_EXECUTABLE_P],
 
6532
[m4_defun([AS_EXECUTABLE_P],
 
6533
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6534
$as_executable_p $1[]dnl
 
6535
])])# AS_EXECUTABLE_P
 
6536
 
6322
6537
# NOTE: This macro has been submitted for inclusion into   #
6323
6538
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6324
6539
#  a released version of Autoconf we should remove this    #
6339
6554
  test -z "$as_dir" && as_dir=.
6340
6555
  for lt_ac_prog in sed gsed; do
6341
6556
    for ac_exec_ext in '' $ac_executable_extensions; do
6342
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6557
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6343
6558
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6344
6559
      fi
6345
6560
    done
6346
6561
  done
6347
6562
done
 
6563
IFS=$as_save_IFS
6348
6564
lt_ac_max=0
6349
6565
lt_ac_count=0
6350
6566
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6377
6593
done
6378
6594
])
6379
6595
SED=$lt_cv_path_SED
 
6596
AC_SUBST([SED])
6380
6597
AC_MSG_RESULT([$SED])
6381
6598
])
6382
6599
 
6383
 
#                                                        -*- Autoconf -*-
6384
 
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
6385
 
# Generated from amversion.in; do not edit by hand.
6386
 
 
6387
 
# This program is free software; you can redistribute it and/or modify
6388
 
# it under the terms of the GNU General Public License as published by
6389
 
# the Free Software Foundation; either version 2, or (at your option)
6390
 
# any later version.
6391
 
 
6392
 
# This program is distributed in the hope that it will be useful,
6393
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6394
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6395
 
# GNU General Public License for more details.
6396
 
 
6397
 
# You should have received a copy of the GNU General Public License
6398
 
# along with this program; if not, write to the Free Software
6399
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6600
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
6601
#
 
6602
# This file is free software; the Free Software Foundation
 
6603
# gives unlimited permission to copy and/or distribute it,
 
6604
# with or without modifications, as long as this notice is preserved.
6400
6605
 
6401
6606
# AM_AUTOMAKE_VERSION(VERSION)
6402
6607
# ----------------------------
6403
6608
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6404
6609
# generated from the m4 files accompanying Automake X.Y.
6405
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
 
6610
# (This private macro should not be called outside this file.)
 
6611
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6612
[am__api_version='1.10'
 
6613
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6614
dnl require some minimum version.  Point them to the right macro.
 
6615
m4_if([$1], [1.10], [],
 
6616
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6617
])
 
6618
 
 
6619
# _AM_AUTOCONF_VERSION(VERSION)
 
6620
# -----------------------------
 
6621
# aclocal traces this macro to find the Autoconf version.
 
6622
# This is a private macro too.  Using m4_define simplifies
 
6623
# the logic in aclocal, which can simply ignore this definition.
 
6624
m4_define([_AM_AUTOCONF_VERSION], [])
6406
6625
 
6407
6626
# AM_SET_CURRENT_AUTOMAKE_VERSION
6408
6627
# -------------------------------
6409
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6628
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6410
6629
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6411
6630
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6412
 
         [AM_AUTOMAKE_VERSION([1.8.5])])
6413
 
 
6414
 
# AM_AUX_DIR_EXPAND
6415
 
 
6416
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6417
 
 
6418
 
# This program is free software; you can redistribute it and/or modify
6419
 
# it under the terms of the GNU General Public License as published by
6420
 
# the Free Software Foundation; either version 2, or (at your option)
6421
 
# any later version.
6422
 
 
6423
 
# This program is distributed in the hope that it will be useful,
6424
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6425
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6426
 
# GNU General Public License for more details.
6427
 
 
6428
 
# You should have received a copy of the GNU General Public License
6429
 
# along with this program; if not, write to the Free Software
6430
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6431
 
# 02111-1307, USA.
 
6631
[AM_AUTOMAKE_VERSION([1.10])dnl
 
6632
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
6633
 
 
6634
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
6635
 
 
6636
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6637
#
 
6638
# This file is free software; the Free Software Foundation
 
6639
# gives unlimited permission to copy and/or distribute it,
 
6640
# with or without modifications, as long as this notice is preserved.
6432
6641
 
6433
6642
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6434
6643
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
6475
6684
am_aux_dir=`cd $ac_aux_dir && pwd`
6476
6685
])
6477
6686
 
6478
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
6479
 
 
6480
 
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6481
 
 
6482
 
# This program is free software; you can redistribute it and/or modify
6483
 
# it under the terms of the GNU General Public License as published by
6484
 
# the Free Software Foundation; either version 2, or (at your option)
6485
 
# any later version.
6486
 
 
6487
 
# This program is distributed in the hope that it will be useful,
6488
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6489
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6490
 
# GNU General Public License for more details.
6491
 
 
6492
 
# You should have received a copy of the GNU General Public License
6493
 
# along with this program; if not, write to the Free Software
6494
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6495
 
# 02111-1307, USA.
6496
 
 
6497
 
# serial 6
 
6687
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
6688
 
 
6689
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
6690
# Free Software Foundation, Inc.
 
6691
#
 
6692
# This file is free software; the Free Software Foundation
 
6693
# gives unlimited permission to copy and/or distribute it,
 
6694
# with or without modifications, as long as this notice is preserved.
 
6695
 
 
6696
# serial 8
6498
6697
 
6499
6698
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6500
6699
# -------------------------------------
6503
6702
[AC_PREREQ(2.52)dnl
6504
6703
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6505
6704
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6506
 
AC_SUBST([$1_TRUE])
6507
 
AC_SUBST([$1_FALSE])
 
6705
AC_SUBST([$1_TRUE])dnl
 
6706
AC_SUBST([$1_FALSE])dnl
 
6707
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6708
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6508
6709
if $2; then
6509
6710
  $1_TRUE=
6510
6711
  $1_FALSE='#'
6514
6715
fi
6515
6716
AC_CONFIG_COMMANDS_PRE(
6516
6717
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6517
 
  AC_MSG_ERROR([conditional "$1" was never defined.
6518
 
Usually this means the macro was only invoked conditionally.])
 
6718
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
6719
Usually this means the macro was only invoked conditionally.]])
6519
6720
fi])])
6520
6721
 
6521
 
# serial 7                                              -*- Autoconf -*-
6522
 
 
6523
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
6722
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6524
6723
# Free Software Foundation, Inc.
6525
 
 
6526
 
# This program is free software; you can redistribute it and/or modify
6527
 
# it under the terms of the GNU General Public License as published by
6528
 
# the Free Software Foundation; either version 2, or (at your option)
6529
 
# any later version.
6530
 
 
6531
 
# This program is distributed in the hope that it will be useful,
6532
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6533
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6534
 
# GNU General Public License for more details.
6535
 
 
6536
 
# You should have received a copy of the GNU General Public License
6537
 
# along with this program; if not, write to the Free Software
6538
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6539
 
# 02111-1307, USA.
6540
 
 
 
6724
#
 
6725
# This file is free software; the Free Software Foundation
 
6726
# gives unlimited permission to copy and/or distribute it,
 
6727
# with or without modifications, as long as this notice is preserved.
 
6728
 
 
6729
# serial 9
6541
6730
 
6542
6731
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6543
6732
# written in clear, in which case automake, when reading aclocal.m4,
6546
6735
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6547
6736
 
6548
6737
 
6549
 
 
6550
6738
# _AM_DEPENDENCIES(NAME)
6551
6739
# ----------------------
6552
6740
# See how the compiler implements dependency checking.
6566
6754
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6567
6755
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6568
6756
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6757
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6569
6758
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6570
6759
                   [depcc="$$1"   am_compiler_list=])
6571
6760
 
6631
6820
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6632
6821
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6633
6822
         >/dev/null 2>conftest.err &&
 
6823
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6634
6824
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6635
6825
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6636
6826
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6683
6873
  AMDEPBACKSLASH='\'
6684
6874
fi
6685
6875
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6686
 
AC_SUBST([AMDEPBACKSLASH])
 
6876
AC_SUBST([AMDEPBACKSLASH])dnl
 
6877
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6687
6878
])
6688
6879
 
6689
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
6690
 
 
6691
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6692
 
 
6693
 
# This program is free software; you can redistribute it and/or modify
6694
 
# it under the terms of the GNU General Public License as published by
6695
 
# the Free Software Foundation; either version 2, or (at your option)
6696
 
# any later version.
6697
 
 
6698
 
# This program is distributed in the hope that it will be useful,
6699
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6700
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6701
 
# GNU General Public License for more details.
6702
 
 
6703
 
# You should have received a copy of the GNU General Public License
6704
 
# along with this program; if not, write to the Free Software
6705
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6706
 
# 02111-1307, USA.
6707
 
 
6708
 
#serial 2
 
6880
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
6881
 
 
6882
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6883
# Free Software Foundation, Inc.
 
6884
#
 
6885
# This file is free software; the Free Software Foundation
 
6886
# gives unlimited permission to copy and/or distribute it,
 
6887
# with or without modifications, as long as this notice is preserved.
 
6888
 
 
6889
#serial 3
6709
6890
 
6710
6891
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6711
6892
# ------------------------------
6718
6899
  # some people rename them; so instead we look at the file content.
6719
6900
  # Grep'ing the first line is not enough: some people post-process
6720
6901
  # each Makefile.in and add a new line on top of each file to say so.
6721
 
  # So let's grep whole file.
6722
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6902
  # Grep'ing the whole file is not good either: AIX grep has a line
 
6903
  # limit of 2048, but all sed's we know have understand at least 4000.
 
6904
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6723
6905
    dirpart=`AS_DIRNAME("$mf")`
6724
6906
  else
6725
6907
    continue
6726
6908
  fi
6727
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6728
 
  # Extract the definition of DEP_FILES from the Makefile without
6729
 
  # running `make'.
 
6909
  # Extract the definition of DEPDIR, am__include, and am__quote
 
6910
  # from the Makefile without running `make'.
6730
6911
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6731
6912
  test -z "$DEPDIR" && continue
 
6913
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6914
  test -z "am__include" && continue
 
6915
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6732
6916
  # When using ansi2knr, U may be empty or an underscore; expand it
6733
6917
  U=`sed -n 's/^U = //p' < "$mf"`
6734
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6735
 
  # We invoke sed twice because it is the simplest approach to
6736
 
  # changing $(DEPDIR) to its actual value in the expansion.
6737
 
  for file in `sed -n '
6738
 
    /^DEP_FILES = .*\\\\$/ {
6739
 
      s/^DEP_FILES = //
6740
 
      :loop
6741
 
        s/\\\\$//
6742
 
        p
6743
 
        n
6744
 
        /\\\\$/ b loop
6745
 
      p
6746
 
    }
6747
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
6918
  # Find all dependency output files, they are included files with
 
6919
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6920
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
6921
  # expansion.
 
6922
  for file in `sed -n "
 
6923
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6748
6924
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6749
6925
    # Make sure the directory exists.
6750
6926
    test -f "$dirpart/$file" && continue
6770
6946
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6771
6947
])
6772
6948
 
6773
 
# Do all the work for Automake.                            -*- Autoconf -*-
6774
 
 
6775
 
# This macro actually does too much some checks are only needed if
 
6949
# Do all the work for Automake.                             -*- Autoconf -*-
 
6950
 
 
6951
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
6952
# 2005, 2006 Free Software Foundation, Inc.
 
6953
#
 
6954
# This file is free software; the Free Software Foundation
 
6955
# gives unlimited permission to copy and/or distribute it,
 
6956
# with or without modifications, as long as this notice is preserved.
 
6957
 
 
6958
# serial 12
 
6959
 
 
6960
# This macro actually does too much.  Some checks are only needed if
6776
6961
# your package does certain things.  But this isn't really a big deal.
6777
6962
 
6778
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6779
 
# Free Software Foundation, Inc.
6780
 
 
6781
 
# This program is free software; you can redistribute it and/or modify
6782
 
# it under the terms of the GNU General Public License as published by
6783
 
# the Free Software Foundation; either version 2, or (at your option)
6784
 
# any later version.
6785
 
 
6786
 
# This program is distributed in the hope that it will be useful,
6787
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6788
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6789
 
# GNU General Public License for more details.
6790
 
 
6791
 
# You should have received a copy of the GNU General Public License
6792
 
# along with this program; if not, write to the Free Software
6793
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6794
 
# 02111-1307, USA.
6795
 
 
6796
 
# serial 11
6797
 
 
6798
6963
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6799
6964
# AM_INIT_AUTOMAKE([OPTIONS])
6800
6965
# -----------------------------------------------
6807
6972
# arguments mandatory, and then we can depend on a new Autoconf
6808
6973
# release and drop the old call support.
6809
6974
AC_DEFUN([AM_INIT_AUTOMAKE],
6810
 
[AC_PREREQ([2.58])dnl
 
6975
[AC_PREREQ([2.60])dnl
6811
6976
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6812
6977
dnl the ones we care about.
6813
6978
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6814
6979
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6815
6980
AC_REQUIRE([AC_PROG_INSTALL])dnl
6816
 
# test to see if srcdir already configured
6817
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6818
 
   test -f $srcdir/config.status; then
6819
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6981
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
6982
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
6983
  # is not polluted with repeated "-I."
 
6984
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
6985
  # test to see if srcdir already configured
 
6986
  if test -f $srcdir/config.status; then
 
6987
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6988
  fi
6820
6989
fi
6821
6990
 
6822
6991
# test whether we have cygpath
6836
7005
 AC_SUBST([PACKAGE], [$1])dnl
6837
7006
 AC_SUBST([VERSION], [$2])],
6838
7007
[_AM_SET_OPTIONS([$1])dnl
 
7008
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7009
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7010
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6839
7011
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6840
7012
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6841
7013
 
6851
7023
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6852
7024
AM_MISSING_PROG(AUTOHEADER, autoheader)
6853
7025
AM_MISSING_PROG(MAKEINFO, makeinfo)
6854
 
AM_MISSING_PROG(AMTAR, tar)
6855
7026
AM_PROG_INSTALL_SH
6856
7027
AM_PROG_INSTALL_STRIP
6857
7028
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6860
7031
AC_REQUIRE([AC_PROG_AWK])dnl
6861
7032
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6862
7033
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6863
 
 
 
7034
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
7035
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
7036
                             [_AM_PROG_TAR([v7])])])
6864
7037
_AM_IF_OPTION([no-dependencies],,
6865
7038
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6866
7039
                  [_AM_DEPENDENCIES(CC)],
6870
7043
                  [_AM_DEPENDENCIES(CXX)],
6871
7044
                  [define([AC_PROG_CXX],
6872
7045
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7046
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7047
                  [_AM_DEPENDENCIES(OBJC)],
 
7048
                  [define([AC_PROG_OBJC],
 
7049
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6873
7050
])
6874
7051
])
6875
7052
 
6894
7071
done
6895
7072
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6896
7073
 
 
7074
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7075
#
 
7076
# This file is free software; the Free Software Foundation
 
7077
# gives unlimited permission to copy and/or distribute it,
 
7078
# with or without modifications, as long as this notice is preserved.
 
7079
 
6897
7080
# AM_PROG_INSTALL_SH
6898
7081
# ------------------
6899
7082
# Define $install_sh.
6900
 
 
6901
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6902
 
 
6903
 
# This program is free software; you can redistribute it and/or modify
6904
 
# it under the terms of the GNU General Public License as published by
6905
 
# the Free Software Foundation; either version 2, or (at your option)
6906
 
# any later version.
6907
 
 
6908
 
# This program is distributed in the hope that it will be useful,
6909
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6910
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6911
 
# GNU General Public License for more details.
6912
 
 
6913
 
# You should have received a copy of the GNU General Public License
6914
 
# along with this program; if not, write to the Free Software
6915
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6916
 
# 02111-1307, USA.
6917
 
 
6918
7083
AC_DEFUN([AM_PROG_INSTALL_SH],
6919
7084
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6920
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7085
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6921
7086
AC_SUBST(install_sh)])
6922
7087
 
6923
 
#                                                          -*- Autoconf -*-
6924
 
# Copyright (C) 2003  Free Software Foundation, Inc.
6925
 
 
6926
 
# This program is free software; you can redistribute it and/or modify
6927
 
# it under the terms of the GNU General Public License as published by
6928
 
# the Free Software Foundation; either version 2, or (at your option)
6929
 
# any later version.
6930
 
 
6931
 
# This program is distributed in the hope that it will be useful,
6932
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6933
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6934
 
# GNU General Public License for more details.
6935
 
 
6936
 
# You should have received a copy of the GNU General Public License
6937
 
# along with this program; if not, write to the Free Software
6938
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6939
 
# 02111-1307, USA.
6940
 
 
6941
 
# serial 1
 
7088
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
7089
#
 
7090
# This file is free software; the Free Software Foundation
 
7091
# gives unlimited permission to copy and/or distribute it,
 
7092
# with or without modifications, as long as this notice is preserved.
 
7093
 
 
7094
# serial 2
6942
7095
 
6943
7096
# Check whether the underlying file-system supports filenames
6944
7097
# with a leading dot.  For instance MS-DOS doesn't.
6953
7106
rmdir .tst 2>/dev/null
6954
7107
AC_SUBST([am__leading_dot])])
6955
7108
 
6956
 
# Add --enable-maintainer-mode option to configure.
 
7109
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
6957
7110
# From Jim Meyering
6958
7111
 
6959
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
 
7112
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
6960
7113
# Free Software Foundation, Inc.
6961
 
 
6962
 
# This program is free software; you can redistribute it and/or modify
6963
 
# it under the terms of the GNU General Public License as published by
6964
 
# the Free Software Foundation; either version 2, or (at your option)
6965
 
# any later version.
6966
 
 
6967
 
# This program is distributed in the hope that it will be useful,
6968
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6969
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6970
 
# GNU General Public License for more details.
6971
 
 
6972
 
# You should have received a copy of the GNU General Public License
6973
 
# along with this program; if not, write to the Free Software
6974
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6975
 
# 02111-1307, USA.
6976
 
 
6977
 
# serial 3
 
7114
#
 
7115
# This file is free software; the Free Software Foundation
 
7116
# gives unlimited permission to copy and/or distribute it,
 
7117
# with or without modifications, as long as this notice is preserved.
 
7118
 
 
7119
# serial 4
6978
7120
 
6979
7121
AC_DEFUN([AM_MAINTAINER_MODE],
6980
7122
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
6993
7135
 
6994
7136
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
6995
7137
 
6996
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
6997
 
 
6998
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6999
 
 
7000
 
# This program is free software; you can redistribute it and/or modify
7001
 
# it under the terms of the GNU General Public License as published by
7002
 
# the Free Software Foundation; either version 2, or (at your option)
7003
 
# any later version.
7004
 
 
7005
 
# This program is distributed in the hope that it will be useful,
7006
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7007
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7008
 
# GNU General Public License for more details.
7009
 
 
7010
 
# You should have received a copy of the GNU General Public License
7011
 
# along with this program; if not, write to the Free Software
7012
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7013
 
# 02111-1307, USA.
7014
 
 
7015
 
# serial 2
 
7138
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
7139
 
 
7140
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7141
#
 
7142
# This file is free software; the Free Software Foundation
 
7143
# gives unlimited permission to copy and/or distribute it,
 
7144
# with or without modifications, as long as this notice is preserved.
 
7145
 
 
7146
# serial 3
7016
7147
 
7017
7148
# AM_MAKE_INCLUDE()
7018
7149
# -----------------
7056
7187
rm -f confinc confmf
7057
7188
])
7058
7189
 
7059
 
#  -*- Autoconf -*-
7060
 
 
7061
 
 
7062
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
7063
 
 
7064
 
# This program is free software; you can redistribute it and/or modify
7065
 
# it under the terms of the GNU General Public License as published by
7066
 
# the Free Software Foundation; either version 2, or (at your option)
7067
 
# any later version.
7068
 
 
7069
 
# This program is distributed in the hope that it will be useful,
7070
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7071
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7072
 
# GNU General Public License for more details.
7073
 
 
7074
 
# You should have received a copy of the GNU General Public License
7075
 
# along with this program; if not, write to the Free Software
7076
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7077
 
# 02111-1307, USA.
7078
 
 
7079
 
# serial 3
 
7190
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
7191
 
 
7192
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
7193
# Free Software Foundation, Inc.
 
7194
#
 
7195
# This file is free software; the Free Software Foundation
 
7196
# gives unlimited permission to copy and/or distribute it,
 
7197
# with or without modifications, as long as this notice is preserved.
 
7198
 
 
7199
# serial 5
7080
7200
 
7081
7201
# AM_MISSING_PROG(NAME, PROGRAM)
7082
7202
# ------------------------------
7092
7212
# If it does, set am_missing_run to use it, otherwise, to nothing.
7093
7213
AC_DEFUN([AM_MISSING_HAS_RUN],
7094
7214
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7215
AC_REQUIRE_AUX_FILE([missing])dnl
7095
7216
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7096
7217
# Use eval to expand $SHELL
7097
7218
if eval "$MISSING --run true"; then
7102
7223
fi
7103
7224
])
7104
7225
 
 
7226
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
7227
#
 
7228
# This file is free software; the Free Software Foundation
 
7229
# gives unlimited permission to copy and/or distribute it,
 
7230
# with or without modifications, as long as this notice is preserved.
 
7231
 
7105
7232
# AM_PROG_MKDIR_P
7106
7233
# ---------------
7107
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7108
 
 
7109
 
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
7110
 
 
7111
 
# This program is free software; you can redistribute it and/or modify
7112
 
# it under the terms of the GNU General Public License as published by
7113
 
# the Free Software Foundation; either version 2, or (at your option)
7114
 
# any later version.
7115
 
 
7116
 
# This program is distributed in the hope that it will be useful,
7117
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7118
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7119
 
# GNU General Public License for more details.
7120
 
 
7121
 
# You should have received a copy of the GNU General Public License
7122
 
# along with this program; if not, write to the Free Software
7123
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7124
 
# 02111-1307, USA.
7125
 
 
7126
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7127
 
# created by `make install' are always world readable, even if the
7128
 
# installer happens to have an overly restrictive umask (e.g. 077).
7129
 
# This was a mistake.  There are at least two reasons why we must not
7130
 
# use `-m 0755':
7131
 
#   - it causes special bits like SGID to be ignored,
7132
 
#   - it may be too restrictive (some setups expect 775 directories).
7133
 
#
7134
 
# Do not use -m 0755 and let people choose whatever they expect by
7135
 
# setting umask.
7136
 
#
7137
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7138
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7139
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7140
 
# concurrently, both version can detect that a/ is missing, but only
7141
 
# one can create it and the other will error out.  Consequently we
7142
 
# restrict ourselves to GNU make (using the --version option ensures
7143
 
# this.)
 
7234
# Check for `mkdir -p'.
7144
7235
AC_DEFUN([AM_PROG_MKDIR_P],
7145
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7146
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
7147
 
  # argument.  Indeed, we sometimes output rules like
7148
 
  #   $(mkdir_p) $(somedir)
7149
 
  # where $(somedir) is conditionally defined.
7150
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
7151
 
  # expensive solution, as it forces Make to start a sub-shell.)
7152
 
  mkdir_p='mkdir -p -- .'
7153
 
else
7154
 
  # On NextStep and OpenStep, the `mkdir' command does not
7155
 
  # recognize any option.  It will interpret all options as
7156
 
  # directories to create, and then abort because `.' already
7157
 
  # exists.
7158
 
  for d in ./-p ./--version;
7159
 
  do
7160
 
    test -d $d && rmdir $d
7161
 
  done
7162
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7163
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7164
 
    mkdir_p='$(mkinstalldirs)'
7165
 
  else
7166
 
    mkdir_p='$(install_sh) -d'
7167
 
  fi
7168
 
fi
7169
 
AC_SUBST([mkdir_p])])
7170
 
 
7171
 
# Helper functions for option handling.                    -*- Autoconf -*-
7172
 
 
7173
 
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
7174
 
 
7175
 
# This program is free software; you can redistribute it and/or modify
7176
 
# it under the terms of the GNU General Public License as published by
7177
 
# the Free Software Foundation; either version 2, or (at your option)
7178
 
# any later version.
7179
 
 
7180
 
# This program is distributed in the hope that it will be useful,
7181
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7182
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7183
 
# GNU General Public License for more details.
7184
 
 
7185
 
# You should have received a copy of the GNU General Public License
7186
 
# along with this program; if not, write to the Free Software
7187
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7188
 
# 02111-1307, USA.
7189
 
 
7190
 
# serial 2
 
7236
[AC_PREREQ([2.60])dnl
 
7237
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7238
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7239
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7240
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7241
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7242
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7243
dnl adjustment using top_builddir (which is defined more often than
 
7244
dnl MKDIR_P).
 
7245
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7246
case $mkdir_p in
 
7247
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7248
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7249
esac
 
7250
])
 
7251
 
 
7252
# Helper functions for option handling.                     -*- Autoconf -*-
 
7253
 
 
7254
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7255
#
 
7256
# This file is free software; the Free Software Foundation
 
7257
# gives unlimited permission to copy and/or distribute it,
 
7258
# with or without modifications, as long as this notice is preserved.
 
7259
 
 
7260
# serial 3
7191
7261
 
7192
7262
# _AM_MANGLE_OPTION(NAME)
7193
7263
# -----------------------
7212
7282
AC_DEFUN([_AM_IF_OPTION],
7213
7283
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7214
7284
 
7215
 
#
7216
 
# Check to make sure that the build environment is sane.
7217
 
#
7218
 
 
7219
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7220
 
 
7221
 
# This program is free software; you can redistribute it and/or modify
7222
 
# it under the terms of the GNU General Public License as published by
7223
 
# the Free Software Foundation; either version 2, or (at your option)
7224
 
# any later version.
7225
 
 
7226
 
# This program is distributed in the hope that it will be useful,
7227
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7228
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7229
 
# GNU General Public License for more details.
7230
 
 
7231
 
# You should have received a copy of the GNU General Public License
7232
 
# along with this program; if not, write to the Free Software
7233
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7234
 
# 02111-1307, USA.
7235
 
 
7236
 
# serial 3
 
7285
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
7286
 
 
7287
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7288
# Free Software Foundation, Inc.
 
7289
#
 
7290
# This file is free software; the Free Software Foundation
 
7291
# gives unlimited permission to copy and/or distribute it,
 
7292
# with or without modifications, as long as this notice is preserved.
 
7293
 
 
7294
# serial 4
7237
7295
 
7238
7296
# AM_SANITY_CHECK
7239
7297
# ---------------
7276
7334
fi
7277
7335
AC_MSG_RESULT(yes)])
7278
7336
 
 
7337
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7338
#
 
7339
# This file is free software; the Free Software Foundation
 
7340
# gives unlimited permission to copy and/or distribute it,
 
7341
# with or without modifications, as long as this notice is preserved.
 
7342
 
7279
7343
# AM_PROG_INSTALL_STRIP
7280
 
 
7281
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7282
 
 
7283
 
# This program is free software; you can redistribute it and/or modify
7284
 
# it under the terms of the GNU General Public License as published by
7285
 
# the Free Software Foundation; either version 2, or (at your option)
7286
 
# any later version.
7287
 
 
7288
 
# This program is distributed in the hope that it will be useful,
7289
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7290
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7291
 
# GNU General Public License for more details.
7292
 
 
7293
 
# You should have received a copy of the GNU General Public License
7294
 
# along with this program; if not, write to the Free Software
7295
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7296
 
# 02111-1307, USA.
7297
 
 
 
7344
# ---------------------
7298
7345
# One issue with vendor `install' (even GNU) is that you can't
7299
7346
# specify the program used to strip binaries.  This is especially
7300
7347
# annoying in cross-compiling environments, where the build's strip
7312
7359
if test "$cross_compiling" != no; then
7313
7360
  AC_CHECK_TOOL([STRIP], [strip], :)
7314
7361
fi
7315
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7362
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7316
7363
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7317
7364
 
 
7365
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7366
#
 
7367
# This file is free software; the Free Software Foundation
 
7368
# gives unlimited permission to copy and/or distribute it,
 
7369
# with or without modifications, as long as this notice is preserved.
 
7370
 
 
7371
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7372
# ---------------------------
 
7373
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
7374
# This macro is traced by Automake.
 
7375
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7376
 
 
7377
# Check how to create a tarball.                            -*- Autoconf -*-
 
7378
 
 
7379
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
7380
#
 
7381
# This file is free software; the Free Software Foundation
 
7382
# gives unlimited permission to copy and/or distribute it,
 
7383
# with or without modifications, as long as this notice is preserved.
 
7384
 
 
7385
# serial 2
 
7386
 
 
7387
# _AM_PROG_TAR(FORMAT)
 
7388
# --------------------
 
7389
# Check how to create a tarball in format FORMAT.
 
7390
# FORMAT should be one of `v7', `ustar', or `pax'.
 
7391
#
 
7392
# Substitute a variable $(am__tar) that is a command
 
7393
# writing to stdout a FORMAT-tarball containing the directory
 
7394
# $tardir.
 
7395
#     tardir=directory && $(am__tar) > result.tar
 
7396
#
 
7397
# Substitute a variable $(am__untar) that extract such
 
7398
# a tarball read from stdin.
 
7399
#     $(am__untar) < result.tar
 
7400
AC_DEFUN([_AM_PROG_TAR],
 
7401
[# Always define AMTAR for backward compatibility.
 
7402
AM_MISSING_PROG([AMTAR], [tar])
 
7403
m4_if([$1], [v7],
 
7404
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7405
     [m4_case([$1], [ustar],, [pax],,
 
7406
              [m4_fatal([Unknown tar format])])
 
7407
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7408
# Loop over all known methods to create a tar archive until one works.
 
7409
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7410
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7411
# Do not fold the above two line into one, because Tru64 sh and
 
7412
# Solaris sh will not grok spaces in the rhs of `-'.
 
7413
for _am_tool in $_am_tools
 
7414
do
 
7415
  case $_am_tool in
 
7416
  gnutar)
 
7417
    for _am_tar in tar gnutar gtar;
 
7418
    do
 
7419
      AM_RUN_LOG([$_am_tar --version]) && break
 
7420
    done
 
7421
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7422
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7423
    am__untar="$_am_tar -xf -"
 
7424
    ;;
 
7425
  plaintar)
 
7426
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7427
    # ustar tarball either.
 
7428
    (tar --version) >/dev/null 2>&1 && continue
 
7429
    am__tar='tar chf - "$$tardir"'
 
7430
    am__tar_='tar chf - "$tardir"'
 
7431
    am__untar='tar xf -'
 
7432
    ;;
 
7433
  pax)
 
7434
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7435
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7436
    am__untar='pax -r'
 
7437
    ;;
 
7438
  cpio)
 
7439
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7440
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7441
    am__untar='cpio -i -H $1 -d'
 
7442
    ;;
 
7443
  none)
 
7444
    am__tar=false
 
7445
    am__tar_=false
 
7446
    am__untar=false
 
7447
    ;;
 
7448
  esac
 
7449
 
 
7450
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7451
  # and am__untar set.
 
7452
  test -n "${am_cv_prog_tar_$1}" && break
 
7453
 
 
7454
  # tar/untar a dummy directory, and stop if the command works
 
7455
  rm -rf conftest.dir
 
7456
  mkdir conftest.dir
 
7457
  echo GrepMe > conftest.dir/file
 
7458
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7459
  rm -rf conftest.dir
 
7460
  if test -s conftest.tar; then
 
7461
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7462
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
7463
  fi
 
7464
done
 
7465
rm -rf conftest.dir
 
7466
 
 
7467
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7468
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7469
AC_SUBST([am__tar])
 
7470
AC_SUBST([am__untar])
 
7471
]) # _AM_PROG_TAR
 
7472