~ubuntu-branches/ubuntu/dapper/linux-ntfs/dapper

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2005-11-08 20:20:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108202023-dpn4lutm8o0div8g
Tags: 1.12.1-1
* New upstream release (closes: #332930):
  - Fixed lots of memory leaks in the tools.
  - ntfsmount now uses the new API, and it has several fixes.
  - Support journals which have been modified by chkdsk.
  - New API for creating hard links, index handling, high-level creation and
    deletion of files and directories.
  - New utility ntfscmp (make extra) which compares two NTFS volumes and
    tell the differences. It's used for development, debugging, testing, etc.
  - Added robustness to several tools.
  - ntfsclone: fix saving by sectors during --rescue.
  - ntfsmount: Add 'locale' option and change interface to 'ntfsmount device
    mount_point'.
  - Fixed problem with kernel 2.4 and mkntfs.
  - Change ALL utilities to display the libntfs version they are running on.
    This should make debugging easier in the case that people are running
    mismatched utilities/library.
* This new release fixes problems with libfuse 2.4.0 (closes: #336357).
* Fixed a lot of typos in the manpages, kindly submitted by A Costa. Thanks!
  (closes: #336143, #336144, #336145, #336147, #336148).
* Fixed a couple of typos by me.
* debian/control: The SONAME of libntfs was bumped. Created new package
  (libntfs8) and removed the old one.
* debian/copyright: Updated the FSF postal address.
* Added debian/ntfsprogs.links in order to ship mkfs.ntfs and
  mount.ntfs-fuse.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.8.3 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- 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  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
dnl Autoconf macros for libgcrypt
 
15
dnl       Copyright (C) 2002, 2004 Free Software Foundation, Inc.
 
16
dnl
 
17
dnl This file is free software; as a special exception the author gives
 
18
dnl unlimited permission to copy and/or distribute it, with or without
 
19
dnl modifications, as long as this notice is preserved.
 
20
dnl
 
21
dnl This file is distributed in the hope that it will be useful, but
 
22
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
 
23
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
24
 
 
25
 
 
26
dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
 
27
dnl                   [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
 
28
dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
 
29
dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
 
30
dnl with the API version to also check the API compatibility. Example:
 
31
dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed 
 
32
dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1.  Using
 
33
dnl this features allows to prevent build against newer versions of libgcrypt
 
34
dnl with a changed API.
 
35
dnl
 
36
AC_DEFUN([AM_PATH_LIBGCRYPT],
 
37
[ AC_ARG_WITH(libgcrypt-prefix,
 
38
            AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
 
39
                           [prefix where LIBGCRYPT is installed (optional)]),
 
40
     libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
 
41
  if test x$libgcrypt_config_prefix != x ; then
 
42
     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
 
43
        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
 
44
     fi
 
45
  fi
 
46
 
 
47
  AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
 
48
  tmp=ifelse([$1], ,1:1.2.0,$1)
 
49
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
50
     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
51
     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
52
  else
 
53
     req_libgcrypt_api=0
 
54
     min_libgcrypt_version="$tmp"
 
55
  fi
 
56
 
 
57
  AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
 
58
  ok=no
 
59
  if test "$LIBGCRYPT_CONFIG" != "no" ; then
 
60
    req_major=`echo $min_libgcrypt_version | \
 
61
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
 
62
    req_minor=`echo $min_libgcrypt_version | \
 
63
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
 
64
    req_micro=`echo $min_libgcrypt_version | \
 
65
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
 
66
    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
 
67
    major=`echo $libgcrypt_config_version | \
 
68
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
 
69
    minor=`echo $libgcrypt_config_version | \
 
70
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
 
71
    micro=`echo $libgcrypt_config_version | \
 
72
               sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
 
73
    if test "$major" -gt "$req_major"; then
 
74
        ok=yes
 
75
    else 
 
76
        if test "$major" -eq "$req_major"; then
 
77
            if test "$minor" -gt "$req_minor"; then
 
78
               ok=yes
 
79
            else
 
80
               if test "$minor" -eq "$req_minor"; then
 
81
                   if test "$micro" -ge "$req_micro"; then
 
82
                     ok=yes
 
83
                   fi
 
84
               fi
 
85
            fi
 
86
        fi
 
87
    fi
 
88
  fi
 
89
  if test $ok = yes; then
 
90
    AC_MSG_RESULT(yes)
 
91
  else
 
92
    AC_MSG_RESULT(no)
 
93
  fi
 
94
  if test $ok = yes; then
 
95
     # If we have a recent libgcrypt, we should also check that the
 
96
     # API is compatible
 
97
     if test "$req_libgcrypt_api" -gt 0 ; then
 
98
        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
 
99
        if test "$tmp" -gt 0 ; then
 
100
           AC_MSG_CHECKING([LIBGCRYPT API version])
 
101
           if test "$req_libgcrypt_api" -eq "$tmp" ; then
 
102
             AC_MSG_RESULT(okay)
 
103
           else
 
104
             ok=no
 
105
             AC_MSG_RESULT([does not match (want=$req_libgcrypt_api got=$tmp)])
 
106
           fi
 
107
        fi
 
108
     fi
 
109
  fi
 
110
  if test $ok = yes; then
 
111
    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
 
112
    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
 
113
    ifelse([$2], , :, [$2])
 
114
  else
 
115
    LIBGCRYPT_CFLAGS=""
 
116
    LIBGCRYPT_LIBS=""
 
117
    ifelse([$3], , :, [$3])
 
118
  fi
 
119
  AC_SUBST(LIBGCRYPT_CFLAGS)
 
120
  AC_SUBST(LIBGCRYPT_LIBS)
 
121
])
 
122
 
 
123
dnl Autoconf macros for libgnutls
 
124
dnl $id$
 
125
 
 
126
# Modified for LIBGNUTLS -- nmav
 
127
# Configure paths for LIBGCRYPT
 
128
# Shamelessly stolen from the one of XDELTA by Owen Taylor
 
129
# Werner Koch   99-12-09
 
130
 
 
131
dnl AM_PATH_LIBGNUTLS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
 
132
dnl Test for libgnutls, and define LIBGNUTLS_CFLAGS and LIBGNUTLS_LIBS
 
133
dnl
 
134
AC_DEFUN([AM_PATH_LIBGNUTLS],
 
135
[dnl
 
136
dnl Get the cflags and libraries from the libgnutls-config script
 
137
dnl
 
138
AC_ARG_WITH(libgnutls-prefix,
 
139
          [  --with-libgnutls-prefix=PFX   Prefix where libgnutls is installed (optional)],
 
140
          libgnutls_config_prefix="$withval", libgnutls_config_prefix="")
 
141
 
 
142
  if test x$libgnutls_config_prefix != x ; then
 
143
     if test x${LIBGNUTLS_CONFIG+set} != xset ; then
 
144
        LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
 
145
     fi
 
146
  fi
 
147
 
 
148
  AC_PATH_PROG(LIBGNUTLS_CONFIG, libgnutls-config, no)
 
149
  min_libgnutls_version=ifelse([$1], ,0.1.0,$1)
 
150
  AC_MSG_CHECKING(for libgnutls - version >= $min_libgnutls_version)
 
151
  no_libgnutls=""
 
152
  if test "$LIBGNUTLS_CONFIG" = "no" ; then
 
153
    no_libgnutls=yes
 
154
  else
 
155
    LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
 
156
    LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
 
157
    libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
 
158
 
 
159
 
 
160
      ac_save_CFLAGS="$CFLAGS"
 
161
      ac_save_LIBS="$LIBS"
 
162
      CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
 
163
      LIBS="$LIBS $LIBGNUTLS_LIBS"
 
164
dnl
 
165
dnl Now check if the installed libgnutls is sufficiently new. Also sanity
 
166
dnl checks the results of libgnutls-config to some extent
 
167
dnl
 
168
      rm -f conf.libgnutlstest
 
169
      AC_TRY_RUN([
 
170
#include <stdio.h>
 
171
#include <stdlib.h>
 
172
#include <string.h>
 
173
#include <gnutls/gnutls.h>
 
174
 
 
175
int
 
176
main ()
 
177
{
 
178
    system ("touch conf.libgnutlstest");
 
179
 
 
180
    if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
 
181
    {
 
182
      printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
 
183
             "$libgnutls_config_version", gnutls_check_version(NULL) );
 
184
      printf("*** was found! If libgnutls-config was correct, then it is best\n");
 
185
      printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
 
186
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
187
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
188
      printf("*** required on your system.\n");
 
189
      printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
 
190
      printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
 
191
      printf("*** before re-running configure\n");
 
192
    }
 
193
    else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
 
194
    {
 
195
      printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
 
196
      printf("*** library (version %s)\n", gnutls_check_version(NULL) );
 
197
    }
 
198
    else
 
199
    {
 
200
      if ( gnutls_check_version( "$min_libgnutls_version" ) )
 
201
      {
 
202
        return 0;
 
203
      }
 
204
     else
 
205
      {
 
206
        printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
 
207
                gnutls_check_version(NULL) );
 
208
        printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
 
209
               "$min_libgnutls_version" );
 
210
        printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
 
211
        printf("*** \n");
 
212
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
213
        printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
 
214
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
215
        printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
 
216
        printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
 
217
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
218
        printf("*** so that the correct libraries are found at run-time))\n");
 
219
      }
 
220
    }
 
221
  return 1;
 
222
}
 
223
],, no_libgnutls=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
 
224
       CFLAGS="$ac_save_CFLAGS"
 
225
       LIBS="$ac_save_LIBS"
 
226
  fi
 
227
 
 
228
  if test "x$no_libgnutls" = x ; then
 
229
     AC_MSG_RESULT(yes)
 
230
     ifelse([$2], , :, [$2])
 
231
  else
 
232
     if test -f conf.libgnutlstest ; then
 
233
        :
 
234
     else
 
235
        AC_MSG_RESULT(no)
 
236
     fi
 
237
     if test "$LIBGNUTLS_CONFIG" = "no" ; then
 
238
       echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
 
239
       echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
 
240
       echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
 
241
       echo "*** full path to libgnutls-config."
 
242
     else
 
243
       if test -f conf.libgnutlstest ; then
 
244
        :
 
245
       else
 
246
          echo "*** Could not run libgnutls test program, checking why..."
 
247
          CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
 
248
          LIBS="$LIBS $LIBGNUTLS_LIBS"
 
249
          AC_TRY_LINK([
 
250
#include <stdio.h>
 
251
#include <stdlib.h>
 
252
#include <string.h>
 
253
#include <gnutls/gnutls.h>
 
254
],      [ return !!gnutls_check_version(NULL); ],
 
255
        [ echo "*** The test program compiled, but did not run. This usually means"
 
256
          echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
 
257
          echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
 
258
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
259
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
260
          echo "*** is required on your system"
 
261
          echo "***"
 
262
          echo "*** If you have an old version installed, it is best to remove it, although"
 
263
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
264
          echo "***" ],
 
265
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
 
266
          echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
 
267
          echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
 
268
          echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG" ])
 
269
          CFLAGS="$ac_save_CFLAGS"
 
270
          LIBS="$ac_save_LIBS"
 
271
       fi
 
272
     fi
 
273
     LIBGNUTLS_CFLAGS=""
 
274
     LIBGNUTLS_LIBS=""
 
275
     ifelse([$3], , :, [$3])
 
276
  fi
 
277
  rm -f conf.libgnutlstest
 
278
  AC_SUBST(LIBGNUTLS_CFLAGS)
 
279
  AC_SUBST(LIBGNUTLS_LIBS)
 
280
])
 
281
 
 
282
dnl *-*wedit:notab*-*  Please keep this as the last line.
 
283
 
14
284
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
285
 
16
286
# serial 47 AC_PROG_LIBTOOL
123
393
 
124
394
# Sed substitution that helps us do robust quoting.  It backslashifies
125
395
# metacharacters that are still active within double-quoted strings.
126
 
Xsed='sed -e s/^X//'
 
396
Xsed='sed -e 1s/^X//'
127
397
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
128
398
 
129
399
# Same as above, but do not quote variable references.
191
461
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192
462
fi
193
463
 
 
464
_LT_CC_BASENAME([$compiler])
 
465
 
194
466
# Only perform the check for file, if the check method requires it
195
467
case $deplibs_check_method in
196
468
file_magic*)
236
508
])# _LT_AC_SYS_COMPILER
237
509
 
238
510
 
 
511
# _LT_CC_BASENAME(CC)
 
512
# -------------------
 
513
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
514
AC_DEFUN([_LT_CC_BASENAME],
 
515
[for cc_temp in $1""; do
 
516
  case $cc_temp in
 
517
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
518
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
519
    \-*) ;;
 
520
    *) break;;
 
521
  esac
 
522
done
 
523
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
524
])
 
525
 
 
526
 
 
527
# _LT_COMPILER_BOILERPLATE
 
528
# ------------------------
 
529
# Check for compiler boilerplate output or warnings with
 
530
# the simple compiler test code.
 
531
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
532
[ac_outfile=conftest.$ac_objext
 
533
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
534
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
535
_lt_compiler_boilerplate=`cat conftest.err`
 
536
$rm conftest*
 
537
])# _LT_COMPILER_BOILERPLATE
 
538
 
 
539
 
 
540
# _LT_LINKER_BOILERPLATE
 
541
# ----------------------
 
542
# Check for linker boilerplate output or warnings with
 
543
# the simple link test code.
 
544
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
545
[ac_outfile=conftest.$ac_objext
 
546
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
547
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
548
_lt_linker_boilerplate=`cat conftest.err`
 
549
$rm conftest*
 
550
])# _LT_LINKER_BOILERPLATE
 
551
 
 
552
 
239
553
# _LT_AC_SYS_LIBPATH_AIX
240
554
# ----------------------
241
555
# Links a minimal program and checks the executable
308
622
 
309
623
# The HP-UX ksh and POSIX shell print the target directory to stdout
310
624
# if CDPATH is set.
311
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
625
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
312
626
 
313
627
if test -z "$ECHO"; then
314
628
if test "X${echo_test_string+set}" != Xset; then
577
891
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
578
892
   if (exit $ac_status) && test -s "$ac_outfile"; then
579
893
     # The compiler can only warn and ignore the option if not recognized
580
 
     # So say no if there are warnings
581
 
     if test ! -s conftest.err; then
 
894
     # So say no if there are warnings other than the usual output.
 
895
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
896
     $SED '/^$/d' conftest.err >conftest.er2
 
897
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
582
898
       $2=yes
583
899
     fi
584
900
   fi
609
925
     if test -s conftest.err; then
610
926
       # Append any errors to the config.log.
611
927
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
928
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
929
       $SED '/^$/d' conftest.err >conftest.er2
 
930
       if diff conftest.exp conftest.er2 >/dev/null; then
 
931
         $2=yes
 
932
       fi
612
933
     else
613
934
       $2=yes
614
935
     fi
632
953
AC_MSG_CHECKING([the maximum length of command line arguments])
633
954
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
634
955
  i=0
635
 
  testring="ABCD"
 
956
  teststring="ABCD"
636
957
 
637
958
  case $build_os in
638
959
  msdosdjgpp*)
667
988
    lt_cv_sys_max_cmd_len=8192;
668
989
    ;;
669
990
 
670
 
 *)
 
991
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
992
    # This has been around since 386BSD, at least.  Likely further.
 
993
    if test -x /sbin/sysctl; then
 
994
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
995
    elif test -x /usr/sbin/sysctl; then
 
996
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
997
    else
 
998
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
999
    fi
 
1000
    # And add a safety zone
 
1001
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1002
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1003
    ;;
 
1004
  osf*)
 
1005
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
1006
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
1007
    # nice to cause kernel panics so lets avoid the loop below.
 
1008
    # First set a reasonable default.
 
1009
    lt_cv_sys_max_cmd_len=16384
 
1010
    # 
 
1011
    if test -x /sbin/sysconfig; then
 
1012
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
1013
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
1014
      esac
 
1015
    fi
 
1016
    ;;
 
1017
  *)
671
1018
    # If test is not a shell built-in, we'll probably end up computing a
672
1019
    # maximum length that is only half of the actual maximum length, but
673
1020
    # we can't tell.
674
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
675
 
               = "XX$testring") >/dev/null 2>&1 &&
676
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
1021
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1022
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1023
               = "XX$teststring") >/dev/null 2>&1 &&
 
1024
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
677
1025
            lt_cv_sys_max_cmd_len=$new_result &&
678
1026
            test $i != 17 # 1/2 MB should be enough
679
1027
    do
680
1028
      i=`expr $i + 1`
681
 
      testring=$testring$testring
 
1029
      teststring=$teststring$teststring
682
1030
    done
683
 
    testring=
 
1031
    teststring=
684
1032
    # Add a significant safety factor because C++ compilers can tack on massive
685
1033
    # amounts of additional arguments before passing them to the linker.
686
1034
    # It appears as though 1/2 is a usable value.
937
1285
   then
938
1286
     # The compiler can only warn and ignore the option if not recognized
939
1287
     # So say no if there are warnings
940
 
     if test ! -s out/conftest.err; then
 
1288
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
1289
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
1290
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
941
1291
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
942
1292
     fi
943
1293
   fi
1005
1355
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1006
1356
_LT_AC_TAGVAR(hardcode_action, $1)=
1007
1357
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1008
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1009
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
1358
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1359
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1010
1360
 
1011
1361
  # We can hardcode non-existant directories.
1012
1362
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1076
1426
library_names_spec=
1077
1427
libname_spec='lib$name'
1078
1428
soname_spec=
1079
 
shrext=".so"
 
1429
shrext_cmds=".so"
1080
1430
postinstall_cmds=
1081
1431
postuninstall_cmds=
1082
1432
finish_cmds=
1173
1523
  shlibpath_var=LIBRARY_PATH
1174
1524
  ;;
1175
1525
 
1176
 
bsdi4*)
 
1526
bsdi[[45]]*)
1177
1527
  version_type=linux
1178
1528
  need_version=no
1179
1529
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1189
1539
 
1190
1540
cygwin* | mingw* | pw32*)
1191
1541
  version_type=windows
1192
 
  shrext=".dll"
 
1542
  shrext_cmds=".dll"
1193
1543
  need_version=no
1194
1544
  need_lib_prefix=no
1195
1545
 
1231
1581
      ;;
1232
1582
    pw32*)
1233
1583
      # pw32 DLLs use 'pw' prefix rather than 'lib'
1234
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
1584
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1235
1585
      ;;
1236
1586
    esac
1237
1587
    ;;
1254
1604
  soname_spec='${libname}${release}${major}$shared_ext'
1255
1605
  shlibpath_overrides_runpath=yes
1256
1606
  shlibpath_var=DYLD_LIBRARY_PATH
1257
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
1607
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1258
1608
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1259
1609
  if test "$GCC" = yes; then
1260
1610
    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"`
1289
1639
  dynamic_linker='GNU ld.so'
1290
1640
  ;;
1291
1641
 
1292
 
freebsd*)
 
1642
freebsd* | dragonfly*)
 
1643
  # DragonFly does not have aout.  When/if they implement a new
 
1644
  # versioning mechanism, adjust this.
1293
1645
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1294
1646
  version_type=freebsd-$objformat
1295
1647
  case $version_type in
1308
1660
  freebsd2*)
1309
1661
    shlibpath_overrides_runpath=yes
1310
1662
    ;;
1311
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
1663
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1312
1664
    shlibpath_overrides_runpath=yes
1313
1665
    hardcode_into_libs=yes
1314
1666
    ;;
1337
1689
  need_version=no
1338
1690
  case "$host_cpu" in
1339
1691
  ia64*)
1340
 
    shrext='.so'
 
1692
    shrext_cmds='.so'
1341
1693
    hardcode_into_libs=yes
1342
1694
    dynamic_linker="$host_os dld.so"
1343
1695
    shlibpath_var=LD_LIBRARY_PATH
1352
1704
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1353
1705
    ;;
1354
1706
   hppa*64*)
1355
 
     shrext='.sl'
 
1707
     shrext_cmds='.sl'
1356
1708
     hardcode_into_libs=yes
1357
1709
     dynamic_linker="$host_os dld.sl"
1358
1710
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1363
1715
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1364
1716
     ;;
1365
1717
   *)
1366
 
    shrext='.sl'
 
1718
    shrext_cmds='.sl'
1367
1719
    dynamic_linker="$host_os dld.sl"
1368
1720
    shlibpath_var=SHLIB_PATH
1369
1721
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1434
1786
 
1435
1787
  # Append ld.so.conf contents to the search path
1436
1788
  if test -f /etc/ld.so.conf; then
1437
 
    ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
1438
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
1789
    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' ' '`
 
1790
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1439
1791
  fi
1440
1792
 
1441
1793
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1497
1849
openbsd*)
1498
1850
  version_type=sunos
1499
1851
  need_lib_prefix=no
1500
 
  need_version=yes
 
1852
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1853
  case $host_os in
 
1854
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1855
    *)                         need_version=no  ;;
 
1856
  esac
1501
1857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1502
1858
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1503
1859
  shlibpath_var=LD_LIBRARY_PATH
1517
1873
 
1518
1874
os2*)
1519
1875
  libname_spec='$name'
1520
 
  shrext=".dll"
 
1876
  shrext_cmds=".dll"
1521
1877
  need_lib_prefix=no
1522
1878
  library_names_spec='$libname${shared_ext} $libname.a'
1523
1879
  dynamic_linker='OS/2 ld.exe'
1663
2019
 
1664
2020
      case $tagname in
1665
2021
      CXX)
1666
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
2022
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2023
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2024
            (test "X$CXX" != "Xg++"))) ; then
1667
2025
          AC_LIBTOOL_LANG_CXX_CONFIG
1668
2026
        else
1669
2027
          tagname=""
2068
2426
*) reload_flag=" $reload_flag" ;;
2069
2427
esac
2070
2428
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2429
case $host_os in
 
2430
  darwin*)
 
2431
    if test "$GCC" = yes; then
 
2432
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2433
    else
 
2434
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2435
    fi
 
2436
    ;;
 
2437
esac
2071
2438
])# AC_PROG_LD_RELOAD_FLAG
2072
2439
 
2073
2440
 
2101
2468
  lt_cv_deplibs_check_method=pass_all
2102
2469
  ;;
2103
2470
 
2104
 
bsdi4*)
 
2471
bsdi[[45]]*)
2105
2472
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2106
2473
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2107
2474
  lt_cv_file_magic_test_file=/shlib/libc.so
2108
2475
  ;;
2109
2476
 
2110
2477
cygwin*)
2111
 
  # win32_libid is a shell function defined in ltmain.sh
 
2478
  # func_win32_libid is a shell function defined in ltmain.sh
2112
2479
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2113
 
  lt_cv_file_magic_cmd='win32_libid'
 
2480
  lt_cv_file_magic_cmd='func_win32_libid'
2114
2481
  ;;
2115
2482
 
2116
2483
mingw* | pw32*)
2117
2484
  # Base MSYS/MinGW do not provide the 'file' command needed by
2118
 
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
2485
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2119
2486
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2120
2487
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2121
2488
  ;;
2124
2491
  lt_cv_deplibs_check_method=pass_all
2125
2492
  ;;
2126
2493
 
2127
 
freebsd* | kfreebsd*-gnu)
 
2494
freebsd* | kfreebsd*-gnu | dragonfly*)
2128
2495
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2129
2496
    case $host_cpu in
2130
2497
    i*86 )
2131
2498
      # Not sure whether the presence of OpenBSD here was a mistake.
2132
2499
      # Let's accept both of them until this is cleared up.
2133
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
2500
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2134
2501
      lt_cv_file_magic_cmd=/usr/bin/file
2135
2502
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2136
2503
      ;;
2174
2541
 
2175
2542
# This must be Linux ELF.
2176
2543
linux*)
2177
 
  case $host_cpu in
2178
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64)
2179
 
    lt_cv_deplibs_check_method=pass_all ;;
2180
 
  *)
2181
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
2182
 
    # this will be overridden with pass_all, but let us keep it just in case
2183
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
2184
 
  esac
2185
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2186
2544
  lt_cv_deplibs_check_method=pass_all
2187
2545
  ;;
2188
2546
 
2205
2563
  ;;
2206
2564
 
2207
2565
openbsd*)
2208
 
  lt_cv_file_magic_cmd=/usr/bin/file
2209
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2210
2566
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2211
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
2567
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2212
2568
  else
2213
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2569
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2214
2570
  fi
2215
2571
  ;;
2216
2572
 
2400
2756
# ---------------
2401
2757
AC_DEFUN([_LT_AC_LANG_CXX],
2402
2758
[AC_REQUIRE([AC_PROG_CXX])
2403
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2759
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2404
2760
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2405
2761
])# _LT_AC_LANG_CXX
2406
2762
 
 
2763
# _LT_AC_PROG_CXXCPP
 
2764
# ---------------
 
2765
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2766
[
 
2767
AC_REQUIRE([AC_PROG_CXX])
 
2768
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2769
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2770
    (test "X$CXX" != "Xg++"))) ; then
 
2771
  AC_PROG_CXXCPP
 
2772
fi
 
2773
])# _LT_AC_PROG_CXXCPP
2407
2774
 
2408
2775
# AC_LIBTOOL_F77
2409
2776
# --------------
2476
2843
 
2477
2844
_LT_AC_SYS_COMPILER
2478
2845
 
 
2846
# save warnings/boilerplate of simple test code
 
2847
_LT_COMPILER_BOILERPLATE
 
2848
_LT_LINKER_BOILERPLATE
 
2849
 
2479
2850
#
2480
2851
# Check for any special shared library compilation flags.
2481
2852
#
2535
2906
  fi
2536
2907
  ;;
2537
2908
 
2538
 
aix4*)
 
2909
aix4* | aix5*)
2539
2910
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2540
2911
    test "$enable_shared" = yes && enable_static=no
2541
2912
  fi
2542
 
  ;;
2543
 
  darwin* | rhapsody*)
2544
 
  if test "$GCC" = yes; then
2545
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2546
 
    case "$host_os" in
2547
 
    rhapsody* | darwin1.[[012]])
2548
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2549
 
      ;;
2550
 
    *) # Darwin 1.3 on
2551
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2552
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2553
 
      else
2554
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2555
 
          10.[[012]])
2556
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2557
 
            ;;
2558
 
          10.*)
2559
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2560
 
            ;;
2561
 
        esac
2562
 
      fi
2563
 
      ;;
2564
 
    esac
2565
 
    output_verbose_link_cmd='echo'
2566
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2567
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2568
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2569
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2570
 
    _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}'
2571
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2572
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2573
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2574
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2575
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2576
 
  else
2577
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2578
 
  fi
2579
2913
    ;;
2580
2914
esac
2581
2915
AC_MSG_RESULT([$enable_shared])
2601
2935
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2602
2936
[AC_LANG_PUSH(C++)
2603
2937
AC_REQUIRE([AC_PROG_CXX])
2604
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2938
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2605
2939
 
2606
2940
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2607
2941
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2645
2979
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2646
2980
_LT_AC_SYS_COMPILER
2647
2981
 
 
2982
# save warnings/boilerplate of simple test code
 
2983
_LT_COMPILER_BOILERPLATE
 
2984
_LT_LINKER_BOILERPLATE
 
2985
 
2648
2986
# Allow CC to be a program name with arguments.
2649
2987
lt_save_CC=$CC
2650
2988
lt_save_LD=$LD
2666
3004
CC=${CXX-"c++"}
2667
3005
compiler=$CC
2668
3006
_LT_AC_TAGVAR(compiler, $1)=$CC
2669
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3007
_LT_CC_BASENAME([$compiler])
2670
3008
 
2671
3009
# We don't want -fno-exception wen compiling C++ code, so set the
2672
3010
# no_builtin_flag separately
2773
3111
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2774
3112
 
2775
3113
    if test "$GXX" = yes; then
2776
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
3114
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
2777
3115
      # We only want to do this on AIX 4.2 and lower, the check
2778
3116
      # below for broken collect2 doesn't work under 4.3+
2779
3117
        collect2name=`${CC} -print-prog-name=collect2`
2794
3132
        fi
2795
3133
      esac
2796
3134
      shared_flag='-shared'
 
3135
      if test "$aix_use_runtimelinking" = yes; then
 
3136
        shared_flag="$shared_flag "'${wl}-G'
 
3137
      fi
2797
3138
    else
2798
3139
      # not using gcc
2799
3140
      if test "$host_cpu" = ia64; then
2853
3194
    esac
2854
3195
    ;;
2855
3196
 
 
3197
 
2856
3198
  cygwin* | mingw* | pw32*)
2857
3199
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2858
3200
    # as there is no search path for DLLs.
2876
3218
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2877
3219
    fi
2878
3220
  ;;
2879
 
 
2880
 
  darwin* | rhapsody*)
2881
 
  if test "$GXX" = yes; then
2882
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2883
 
    case "$host_os" in
2884
 
    rhapsody* | darwin1.[[012]])
2885
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2886
 
      ;;
2887
 
    *) # Darwin 1.3 on
2888
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2889
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2890
 
      else
2891
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2892
 
          10.[[012]])
2893
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2894
 
            ;;
2895
 
          10.*)
2896
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2897
 
            ;;
 
3221
      darwin* | rhapsody*)
 
3222
        case "$host_os" in
 
3223
        rhapsody* | darwin1.[[012]])
 
3224
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
3225
         ;;
 
3226
       *) # Darwin 1.3 on
 
3227
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3228
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3229
         else
 
3230
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
3231
             10.[[012]])
 
3232
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3233
               ;;
 
3234
             10.*)
 
3235
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
3236
               ;;
 
3237
           esac
 
3238
         fi
 
3239
         ;;
2898
3240
        esac
2899
 
      fi
2900
 
      ;;
2901
 
    esac
2902
 
    lt_int_apple_cc_single_mod=no
2903
 
    output_verbose_link_cmd='echo'
2904
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2905
 
      lt_int_apple_cc_single_mod=yes
2906
 
    fi
2907
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2908
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2909
 
    else
2910
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2911
 
    fi
2912
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3241
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3242
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3243
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3244
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3245
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3246
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2913
3247
 
2914
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2915
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2916
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2917
 
    else
2918
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2919
 
    fi
2920
 
    _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}'
2921
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2922
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2923
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2924
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2925
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2926
 
  else
2927
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2928
 
  fi
2929
 
    ;;
 
3248
    if test "$GXX" = yes ; then
 
3249
      lt_int_apple_cc_single_mod=no
 
3250
      output_verbose_link_cmd='echo'
 
3251
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3252
       lt_int_apple_cc_single_mod=yes
 
3253
      fi
 
3254
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3255
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3256
      else
 
3257
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3258
        fi
 
3259
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3260
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3261
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3262
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3263
          else
 
3264
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3265
          fi
 
3266
            _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}'
 
3267
      else
 
3268
      case $cc_basename in
 
3269
        xlc*)
 
3270
         output_verbose_link_cmd='echo'
 
3271
          _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'
 
3272
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3273
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3274
          _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}'
 
3275
          _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}'
 
3276
          ;;
 
3277
       *)
 
3278
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3279
          ;;
 
3280
      esac
 
3281
      fi
 
3282
        ;;
2930
3283
 
2931
3284
  dgux*)
2932
3285
    case $cc_basename in
2933
 
      ec++)
 
3286
      ec++*)
2934
3287
        # FIXME: insert proper C++ library support
2935
3288
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2936
3289
        ;;
2937
 
      ghcx)
 
3290
      ghcx*)
2938
3291
        # Green Hills C++ Compiler
2939
3292
        # FIXME: insert proper C++ library support
2940
3293
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2945
3298
        ;;
2946
3299
    esac
2947
3300
    ;;
2948
 
  freebsd[12]*)
 
3301
  freebsd[[12]]*)
2949
3302
    # C++ shared libraries reported to be fairly broken before switch to ELF
2950
3303
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2951
3304
    ;;
2952
3305
  freebsd-elf*)
2953
3306
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2954
3307
    ;;
2955
 
  freebsd* | kfreebsd*-gnu)
 
3308
  freebsd* | kfreebsd*-gnu | dragonfly*)
2956
3309
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2957
3310
    # conventions
2958
3311
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2969
3322
                                # location of the library.
2970
3323
 
2971
3324
    case $cc_basename in
2972
 
    CC)
 
3325
    CC*)
2973
3326
      # FIXME: insert proper C++ library support
2974
3327
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2975
3328
      ;;
2976
 
    aCC)
 
3329
    aCC*)
2977
3330
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2978
3331
      # Commands to make compiler produce verbose output that lists
2979
3332
      # what "hidden" libraries, object files and flags are used when
2983
3336
      # explicitly linking system object files so we need to strip them
2984
3337
      # from the output so that they don't get included in the library
2985
3338
      # dependencies.
2986
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3339
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2987
3340
      ;;
2988
3341
    *)
2989
3342
      if test "$GXX" = yes; then
3034
3387
    esac
3035
3388
 
3036
3389
    case $cc_basename in
3037
 
      CC)
 
3390
      CC*)
3038
3391
        # FIXME: insert proper C++ library support
3039
3392
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3040
3393
        ;;
3041
 
      aCC)
 
3394
      aCC*)
3042
3395
        case "$host_cpu" in
3043
3396
        hppa*64*|ia64*)
3044
3397
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3078
3431
    ;;
3079
3432
  irix5* | irix6*)
3080
3433
    case $cc_basename in
3081
 
      CC)
 
3434
      CC*)
3082
3435
        # SGI C++
3083
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3436
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3084
3437
 
3085
3438
        # Archives containing C++ object files must be created using
3086
3439
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3091
3444
      *)
3092
3445
        if test "$GXX" = yes; then
3093
3446
          if test "$with_gnu_ld" = no; then
3094
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3447
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3095
3448
          else
3096
3449
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3097
3450
          fi
3104
3457
    ;;
3105
3458
  linux*)
3106
3459
    case $cc_basename in
3107
 
      KCC)
 
3460
      KCC*)
3108
3461
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3109
3462
 
3110
3463
        # KCC will only create a shared library if the output file
3129
3482
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3130
3483
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3131
3484
        ;;
3132
 
      icpc)
 
3485
      icpc*)
3133
3486
        # Intel C++
3134
3487
        with_gnu_ld=yes
 
3488
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3489
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3490
        # earlier do not add the objects themselves.
 
3491
        case `$CC -V 2>&1` in
 
3492
        *"Version 7."*)
 
3493
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3494
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3495
          ;;
 
3496
        *)  # Version 8.0 or newer
 
3497
          tmp_idyn=
 
3498
          case $host_cpu in
 
3499
            ia64*) tmp_idyn=' -i_dynamic';;
 
3500
          esac
 
3501
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3502
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3503
          ;;
 
3504
        esac
3135
3505
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3136
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3137
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3138
3506
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3139
3507
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3140
3508
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3141
3509
        ;;
3142
 
      cxx)
 
3510
      pgCC*)
 
3511
        # Portland Group C++ compiler
 
3512
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3513
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3514
 
 
3515
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3516
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3517
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3518
        ;;
 
3519
      cxx*)
3143
3520
        # Compaq C++
3144
3521
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3145
3522
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3170
3547
    ;;
3171
3548
  mvs*)
3172
3549
    case $cc_basename in
3173
 
      cxx)
 
3550
      cxx*)
3174
3551
        # FIXME: insert proper C++ library support
3175
3552
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3176
3553
        ;;
3191
3568
    # Workaround some broken pre-1.5 toolchains
3192
3569
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3193
3570
    ;;
 
3571
  openbsd2*)
 
3572
    # C++ shared libraries are fairly broken
 
3573
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3574
    ;;
 
3575
  openbsd*)
 
3576
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3577
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3578
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3579
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3580
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3581
      _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'
 
3582
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3583
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3584
    fi
 
3585
    output_verbose_link_cmd='echo'
 
3586
    ;;
3194
3587
  osf3*)
3195
3588
    case $cc_basename in
3196
 
      KCC)
 
3589
      KCC*)
3197
3590
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3198
3591
 
3199
3592
        # KCC will only create a shared library if the output file
3209
3602
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3210
3603
 
3211
3604
        ;;
3212
 
      RCC)
 
3605
      RCC*)
3213
3606
        # Rational C++ 2.4.1
3214
3607
        # FIXME: insert proper C++ library support
3215
3608
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3216
3609
        ;;
3217
 
      cxx)
 
3610
      cxx*)
3218
3611
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3219
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3612
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3220
3613
 
3221
3614
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3222
3615
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3234
3627
      *)
3235
3628
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3236
3629
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3237
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3630
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3238
3631
 
3239
3632
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3240
3633
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3253
3646
    ;;
3254
3647
  osf4* | osf5*)
3255
3648
    case $cc_basename in
3256
 
      KCC)
 
3649
      KCC*)
3257
3650
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3258
3651
 
3259
3652
        # KCC will only create a shared library if the output file
3268
3661
        # the KAI C++ compiler.
3269
3662
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3270
3663
        ;;
3271
 
      RCC)
 
3664
      RCC*)
3272
3665
        # Rational C++ 2.4.1
3273
3666
        # FIXME: insert proper C++ library support
3274
3667
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3275
3668
        ;;
3276
 
      cxx)
 
3669
      cxx*)
3277
3670
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3278
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3671
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3279
3672
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3280
3673
          echo "-hidden">> $lib.exp~
3281
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
3674
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3282
3675
          $rm $lib.exp'
3283
3676
 
3284
3677
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3297
3690
      *)
3298
3691
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3299
3692
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3300
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3693
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3301
3694
 
3302
3695
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3303
3696
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3321
3714
  sco*)
3322
3715
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3323
3716
    case $cc_basename in
3324
 
      CC)
 
3717
      CC*)
3325
3718
        # FIXME: insert proper C++ library support
3326
3719
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3327
3720
        ;;
3333
3726
    ;;
3334
3727
  sunos4*)
3335
3728
    case $cc_basename in
3336
 
      CC)
 
3729
      CC*)
3337
3730
        # Sun C++ 4.x
3338
3731
        # FIXME: insert proper C++ library support
3339
3732
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3340
3733
        ;;
3341
 
      lcc)
 
3734
      lcc*)
3342
3735
        # Lucid
3343
3736
        # FIXME: insert proper C++ library support
3344
3737
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3351
3744
    ;;
3352
3745
  solaris*)
3353
3746
    case $cc_basename in
3354
 
      CC)
 
3747
      CC*)
3355
3748
        # Sun C++ 4.2, 5.x and Centerline C++
3356
3749
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3357
3750
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3361
3754
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3362
3755
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3363
3756
        case $host_os in
3364
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3757
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3365
3758
          *)
3366
3759
            # The C++ compiler is used as linker so we must use $wl
3367
3760
            # flag to pass the commands to the underlying system
3368
 
            # linker.
 
3761
            # linker. We must also pass each convience library through
 
3762
            # to the system linker between allextract/defaultextract.
 
3763
            # The C++ compiler will combine linker options so we
 
3764
            # cannot just pass the convience library names through
 
3765
            # without $wl.
3369
3766
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3370
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3767
            _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'
3371
3768
            ;;
3372
3769
        esac
3373
3770
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3388
3785
        # in the archive.
3389
3786
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3390
3787
        ;;
3391
 
      gcx)
 
3788
      gcx*)
3392
3789
        # Green Hills C++ Compiler
3393
3790
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3394
3791
 
3431
3828
    ;;
3432
3829
  tandem*)
3433
3830
    case $cc_basename in
3434
 
      NCC)
 
3831
      NCC*)
3435
3832
        # NonStop-UX NCC 3.20
3436
3833
        # FIXME: insert proper C++ library support
3437
3834
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3663
4060
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3664
4061
_LT_AC_SYS_COMPILER
3665
4062
 
 
4063
# save warnings/boilerplate of simple test code
 
4064
_LT_COMPILER_BOILERPLATE
 
4065
_LT_LINKER_BOILERPLATE
 
4066
 
3666
4067
# Allow CC to be a program name with arguments.
3667
4068
lt_save_CC="$CC"
3668
4069
CC=${F77-"f77"}
3669
4070
compiler=$CC
3670
4071
_LT_AC_TAGVAR(compiler, $1)=$CC
3671
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
4072
_LT_CC_BASENAME([$compiler])
3672
4073
 
3673
4074
AC_MSG_CHECKING([if libtool supports shared libraries])
3674
4075
AC_MSG_RESULT([$can_build_shared])
3686
4087
    postinstall_cmds='$RANLIB $lib'
3687
4088
  fi
3688
4089
  ;;
3689
 
aix4*)
3690
 
  test "$enable_shared" = yes && enable_static=no
 
4090
aix4* | aix5*)
 
4091
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
4092
    test "$enable_shared" = yes && enable_static=no
 
4093
  fi
3691
4094
  ;;
3692
4095
esac
3693
4096
AC_MSG_RESULT([$enable_shared])
3738
4141
lt_simple_compile_test_code="class foo {}\n"
3739
4142
 
3740
4143
# Code to be used in simple link tests
3741
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
4144
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3742
4145
 
3743
4146
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3744
4147
_LT_AC_SYS_COMPILER
3745
4148
 
 
4149
# save warnings/boilerplate of simple test code
 
4150
_LT_COMPILER_BOILERPLATE
 
4151
_LT_LINKER_BOILERPLATE
 
4152
 
3746
4153
# Allow CC to be a program name with arguments.
3747
4154
lt_save_CC="$CC"
3748
4155
CC=${GCJ-"gcj"}
3749
4156
compiler=$CC
3750
4157
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4158
_LT_CC_BASENAME([$compiler])
3751
4159
 
3752
4160
# GCJ did not exist at the time GCC didn't implicitly link libc in.
3753
4161
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3754
4162
 
 
4163
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4164
 
3755
4165
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3756
4166
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3757
4167
AC_LIBTOOL_PROG_CC_C_O($1)
3794
4204
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3795
4205
_LT_AC_SYS_COMPILER
3796
4206
 
 
4207
# save warnings/boilerplate of simple test code
 
4208
_LT_COMPILER_BOILERPLATE
 
4209
_LT_LINKER_BOILERPLATE
 
4210
 
3797
4211
# Allow CC to be a program name with arguments.
3798
4212
lt_save_CC="$CC"
3799
4213
CC=${RC-"windres"}
3800
4214
compiler=$CC
3801
4215
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4216
_LT_CC_BASENAME([$compiler])
3802
4217
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3803
4218
 
3804
4219
AC_LIBTOOL_CONFIG($1)
3828
4243
  # Now quote all the things that may contain metacharacters while being
3829
4244
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
3830
4245
  # variables and quote the copies for generation of the libtool script.
3831
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
 
4246
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
3832
4247
    SED SHELL STRIP \
3833
4248
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3834
4249
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3934
4349
#
3935
4350
# You should have received a copy of the GNU General Public License
3936
4351
# along with this program; if not, write to the Free Software
3937
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4352
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3938
4353
#
3939
4354
# As a special exception to the GNU General Public License, if you
3940
4355
# distribute this file as part of a program that contains a
3945
4360
SED=$lt_SED
3946
4361
 
3947
4362
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3948
 
Xsed="$SED -e s/^X//"
 
4363
Xsed="$SED -e 1s/^X//"
3949
4364
 
3950
4365
# The HP-UX ksh and POSIX shell print the target directory to stdout
3951
4366
# if CDPATH is set.
3952
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4367
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3953
4368
 
3954
4369
# The names of the tagged configurations supported by this script.
3955
4370
available_tags=
3980
4395
# The host system.
3981
4396
host_alias=$host_alias
3982
4397
host=$host
 
4398
host_os=$host_os
 
4399
 
 
4400
# The build system.
 
4401
build_alias=$build_alias
 
4402
build=$build
 
4403
build_os=$build_os
3983
4404
 
3984
4405
# An echo program that does not interpret backslashes.
3985
4406
echo=$lt_echo
4022
4443
OBJDUMP="$OBJDUMP"
4023
4444
 
4024
4445
# Used on cygwin: assembler.
4025
 
AS=$lt_AS
 
4446
AS="$AS"
4026
4447
 
4027
4448
# The name of the directory that contains temporary libtool files.
4028
4449
objdir=$objdir
4041
4462
libext="$libext"
4042
4463
 
4043
4464
# Shared library suffix (normally ".so").
4044
 
shrext='$shrext'
 
4465
shrext_cmds='$shrext_cmds'
4045
4466
 
4046
4467
# Executable file suffix (normally "").
4047
4468
exeext="$exeext"
4056
4477
# Does compiler simultaneously support -c and -o options?
4057
4478
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4058
4479
 
4059
 
# Must we lock files when doing compilation ?
 
4480
# Must we lock files when doing compilation?
4060
4481
need_locks=$lt_need_locks
4061
4482
 
4062
4483
# Do we need the lib prefix for modules?
4330
4751
# Regexp to match symbols that can be accessed directly from C.
4331
4752
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4332
4753
 
4333
 
# Transform the above into a raw symbol and a C symbol.
4334
 
symxfrm='\1 \2\3 \3'
4335
 
 
4336
4754
# Transform an extracted symbol line into a proper C declaration
4337
4755
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4338
4756
 
4354
4772
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4355
4773
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4356
4774
  ;;
 
4775
linux*)
 
4776
  if test "$host_cpu" = ia64; then
 
4777
    symcode='[[ABCDGIRSTW]]'
 
4778
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4779
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4780
  fi
 
4781
  ;;
4357
4782
irix* | nonstopux*)
4358
4783
  symcode='[[BCDEGRST]]'
4359
4784
  ;;
4385
4810
# Try without a prefix undercore, then with it.
4386
4811
for ac_symprfx in "" "_"; do
4387
4812
 
 
4813
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4814
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4815
 
4388
4816
  # Write the raw and C identifiers.
4389
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4817
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4390
4818
 
4391
4819
  # Check to see that the pipe works correctly.
4392
4820
  pipe_works=no
4575
5003
        ;;
4576
5004
      chorus*)
4577
5005
        case $cc_basename in
4578
 
        cxch68)
 
5006
        cxch68*)
4579
5007
          # Green Hills C++ Compiler
4580
5008
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4581
5009
          ;;
4582
5010
        esac
4583
5011
        ;;
 
5012
       darwin*)
 
5013
         # PIC is the default on this platform
 
5014
         # Common symbols not allowed in MH_DYLIB files
 
5015
         case $cc_basename in
 
5016
           xlc*)
 
5017
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5018
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5019
           ;;
 
5020
         esac
 
5021
       ;;
4584
5022
      dgux*)
4585
5023
        case $cc_basename in
4586
 
          ec++)
 
5024
          ec++*)
4587
5025
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4588
5026
            ;;
4589
 
          ghcx)
 
5027
          ghcx*)
4590
5028
            # Green Hills C++ Compiler
4591
5029
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4592
5030
            ;;
4594
5032
            ;;
4595
5033
        esac
4596
5034
        ;;
4597
 
      freebsd* | kfreebsd*-gnu)
 
5035
      freebsd* | kfreebsd*-gnu | dragonfly*)
4598
5036
        # FreeBSD uses GNU C++
4599
5037
        ;;
4600
5038
      hpux9* | hpux10* | hpux11*)
4601
5039
        case $cc_basename in
4602
 
          CC)
 
5040
          CC*)
4603
5041
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4604
5042
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4605
5043
            if test "$host_cpu" != ia64; then
4606
5044
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4607
5045
            fi
4608
5046
            ;;
4609
 
          aCC)
 
5047
          aCC*)
4610
5048
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4611
5049
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4612
5050
            case "$host_cpu" in
4624
5062
        ;;
4625
5063
      irix5* | irix6* | nonstopux*)
4626
5064
        case $cc_basename in
4627
 
          CC)
 
5065
          CC*)
4628
5066
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4629
5067
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4630
5068
            # CC pic flag -KPIC is the default.
4635
5073
        ;;
4636
5074
      linux*)
4637
5075
        case $cc_basename in
4638
 
          KCC)
 
5076
          KCC*)
4639
5077
            # KAI C++ Compiler
4640
5078
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4641
5079
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4642
5080
            ;;
4643
 
          icpc)
 
5081
          icpc* | ecpc*)
4644
5082
            # Intel C++
4645
5083
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4646
5084
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4647
5085
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4648
5086
            ;;
4649
 
          cxx)
 
5087
          pgCC*)
 
5088
            # Portland Group C++ compiler.
 
5089
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5090
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5091
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5092
            ;;
 
5093
          cxx*)
4650
5094
            # Compaq C++
4651
5095
            # Make sure the PIC flag is empty.  It appears that all Alpha
4652
5096
            # Linux and Compaq Tru64 Unix objects are PIC.
4663
5107
        ;;
4664
5108
      mvs*)
4665
5109
        case $cc_basename in
4666
 
          cxx)
 
5110
          cxx*)
4667
5111
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4668
5112
            ;;
4669
5113
          *)
4674
5118
        ;;
4675
5119
      osf3* | osf4* | osf5*)
4676
5120
        case $cc_basename in
4677
 
          KCC)
 
5121
          KCC*)
4678
5122
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4679
5123
            ;;
4680
 
          RCC)
 
5124
          RCC*)
4681
5125
            # Rational C++ 2.4.1
4682
5126
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4683
5127
            ;;
4684
 
          cxx)
 
5128
          cxx*)
4685
5129
            # Digital/Compaq C++
4686
5130
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4687
5131
            # Make sure the PIC flag is empty.  It appears that all Alpha
4697
5141
        ;;
4698
5142
      sco*)
4699
5143
        case $cc_basename in
4700
 
          CC)
 
5144
          CC*)
4701
5145
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4702
5146
            ;;
4703
5147
          *)
4706
5150
        ;;
4707
5151
      solaris*)
4708
5152
        case $cc_basename in
4709
 
          CC)
 
5153
          CC*)
4710
5154
            # Sun C++ 4.2, 5.x and Centerline C++
4711
5155
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4712
5156
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4713
5157
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4714
5158
            ;;
4715
 
          gcx)
 
5159
          gcx*)
4716
5160
            # Green Hills C++ Compiler
4717
5161
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4718
5162
            ;;
4722
5166
        ;;
4723
5167
      sunos4*)
4724
5168
        case $cc_basename in
4725
 
          CC)
 
5169
          CC*)
4726
5170
            # Sun C++ 4.x
4727
5171
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4728
5172
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4729
5173
            ;;
4730
 
          lcc)
 
5174
          lcc*)
4731
5175
            # Lucid
4732
5176
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4733
5177
            ;;
4737
5181
        ;;
4738
5182
      tandem*)
4739
5183
        case $cc_basename in
4740
 
          NCC)
 
5184
          NCC*)
4741
5185
            # NonStop-UX NCC 3.20
4742
5186
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4743
5187
            ;;
4834
5278
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4835
5279
      fi
4836
5280
      ;;
 
5281
      darwin*)
 
5282
        # PIC is the default on this platform
 
5283
        # Common symbols not allowed in MH_DYLIB files
 
5284
       case $cc_basename in
 
5285
         xlc*)
 
5286
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5287
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5288
         ;;
 
5289
       esac
 
5290
       ;;
4837
5291
 
4838
5292
    mingw* | pw32* | os2*)
4839
5293
      # This hack is so that the source file can tell whether it is being
4869
5323
      ;;
4870
5324
 
4871
5325
    linux*)
4872
 
      case $CC in
 
5326
      case $cc_basename in
4873
5327
      icc* | ecc*)
4874
5328
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4875
5329
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4876
5330
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4877
5331
        ;;
 
5332
      pgcc* | pgf77* | pgf90*)
 
5333
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5334
        # which looks to be a dead project)
 
5335
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5336
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5337
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5338
        ;;
4878
5339
      ccc*)
4879
5340
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4880
5341
        # All Alpha code is PIC.
4895
5356
      ;;
4896
5357
 
4897
5358
    solaris*)
4898
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4899
5359
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4900
5360
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5361
      case $cc_basename in
 
5362
      f77* | f90* | f95*)
 
5363
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5364
      *)
 
5365
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5366
      esac
4901
5367
      ;;
4902
5368
 
4903
5369
    sunos4*)
4919
5385
      fi
4920
5386
      ;;
4921
5387
 
 
5388
    unicos*)
 
5389
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5390
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5391
      ;;
 
5392
 
4922
5393
    uts4*)
4923
5394
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4924
5395
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4979
5450
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4980
5451
  ;;
4981
5452
  cygwin* | mingw*)
4982
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5453
    _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'
4983
5454
  ;;
4984
5455
  *)
4985
5456
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5022
5493
  # rely on this symbol name, it's probably fine to never include it in
5023
5494
  # preloaded symbol tables.
5024
5495
  extract_expsyms_cmds=
5025
 
 
 
5496
  # Just being paranoid about ensuring that cc_basename is set.
 
5497
  _LT_CC_BASENAME([$compiler])
5026
5498
  case $host_os in
5027
5499
  cygwin* | mingw* | pw32*)
5028
5500
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5041
5513
  if test "$with_gnu_ld" = yes; then
5042
5514
    # If archive_cmds runs LD, not CC, wlarc should be empty
5043
5515
    wlarc='${wl}'
5044
 
 
 
5516
    
 
5517
    # Set some defaults for GNU ld with shared library support. These
 
5518
    # are reset later if shared libraries are not supported. Putting them
 
5519
    # here allows them to be overridden if necessary.
 
5520
    runpath_var=LD_RUN_PATH
 
5521
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5522
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5523
    # ancient GNU ld didn't support --whole-archive et. al.
 
5524
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5525
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5526
      else
 
5527
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5528
    fi
 
5529
    supports_anon_versioning=no
 
5530
    case `$LD -v 2>/dev/null` in
 
5531
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5532
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5533
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5534
      *\ 2.11.*) ;; # other 2.11 versions
 
5535
      *) supports_anon_versioning=yes ;;
 
5536
    esac
 
5537
    
5045
5538
    # See if GNU ld supports shared libraries.
5046
5539
    case $host_os in
5047
5540
    aix3* | aix4* | aix5*)
5092
5585
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5093
5586
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5094
5587
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5095
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5588
      _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'
5096
5589
 
5097
5590
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5098
5591
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5106
5599
        fi~
5107
5600
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
5108
5601
      else
5109
 
        ld_shlibs=no
 
5602
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5603
      fi
 
5604
      ;;
 
5605
 
 
5606
    linux*)
 
5607
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5608
        tmp_addflag=
 
5609
        case $cc_basename,$host_cpu in
 
5610
        pgcc*)                          # Portland Group C compiler
 
5611
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5612
          tmp_addflag=' $pic_flag'
 
5613
          ;;
 
5614
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
5615
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5616
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5617
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5618
          tmp_addflag=' -i_dynamic' ;;
 
5619
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5620
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5621
        ifc* | ifort*)                  # Intel Fortran compiler
 
5622
          tmp_addflag=' -nofor_main' ;;
 
5623
        esac
 
5624
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5625
 
 
5626
        if test $supports_anon_versioning = yes; then
 
5627
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5628
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5629
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5630
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5631
        fi
 
5632
      else
 
5633
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5110
5634
      fi
5111
5635
      ;;
5112
5636
 
5148
5672
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5149
5673
      ;;
5150
5674
 
5151
 
  linux*)
5152
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5153
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5154
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5155
 
      supports_anon_versioning=no
5156
 
      case `$LD -v 2>/dev/null` in
5157
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5158
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5159
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5160
 
        *\ 2.11.*) ;; # other 2.11 versions
5161
 
        *) supports_anon_versioning=yes ;;
5162
 
      esac
5163
 
      if test $supports_anon_versioning = yes; then
5164
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5165
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5166
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
5167
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5168
 
      else
5169
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5170
 
      fi
5171
 
    else
5172
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5173
 
    fi
5174
 
    ;;
5175
 
 
5176
5675
    *)
5177
5676
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5178
5677
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5183
5682
      ;;
5184
5683
    esac
5185
5684
 
5186
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5187
 
      runpath_var=LD_RUN_PATH
5188
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5189
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5190
 
      # ancient GNU ld didn't support --whole-archive et. al.
5191
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5192
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5193
 
      else
5194
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5195
 
      fi
 
5685
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5686
      runpath_var=
 
5687
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5688
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5689
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5196
5690
    fi
5197
5691
  else
5198
5692
    # PORTME fill in a description of your system's linker (not GNU ld)
5256
5750
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5257
5751
 
5258
5752
      if test "$GCC" = yes; then
5259
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
5753
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5260
5754
        # We only want to do this on AIX 4.2 and lower, the check
5261
5755
        # below for broken collect2 doesn't work under 4.3+
5262
5756
          collect2name=`${CC} -print-prog-name=collect2`
5277
5771
          fi
5278
5772
        esac
5279
5773
        shared_flag='-shared'
 
5774
        if test "$aix_use_runtimelinking" = yes; then
 
5775
          shared_flag="$shared_flag "'${wl}-G'
 
5776
        fi
5280
5777
      else
5281
5778
        # not using gcc
5282
5779
        if test "$host_cpu" = ia64; then
5335
5832
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5336
5833
      ;;
5337
5834
 
5338
 
    bsdi4*)
 
5835
    bsdi[[45]]*)
5339
5836
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5340
5837
      ;;
5341
5838
 
5349
5846
      # Tell ltmain to make .lib files, not .a files.
5350
5847
      libext=lib
5351
5848
      # Tell ltmain to make .dll files, not .so files.
5352
 
      shrext=".dll"
 
5849
      shrext_cmds=".dll"
5353
5850
      # FIXME: Setting linknames here is a bad hack.
5354
5851
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5355
5852
      # The linker will automatically build a .lib file if we build a DLL.
5356
5853
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5357
5854
      # FIXME: Should let the user specify the lib program.
5358
5855
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5359
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5856
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5360
5857
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5361
5858
      ;;
5362
5859
 
5363
5860
    darwin* | rhapsody*)
5364
 
    if test "$GXX" = yes ; then
5365
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5366
5861
      case "$host_os" in
5367
 
      rhapsody* | darwin1.[[012]])
5368
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5369
 
        ;;
5370
 
      *) # Darwin 1.3 on
5371
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5372
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5373
 
      else
5374
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
5375
 
          10.[[012]])
5376
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5377
 
            ;;
5378
 
          10.*)
5379
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5380
 
            ;;
5381
 
        esac
5382
 
      fi
5383
 
        ;;
 
5862
        rhapsody* | darwin1.[[012]])
 
5863
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
5864
         ;;
 
5865
       *) # Darwin 1.3 on
 
5866
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5867
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5868
         else
 
5869
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
5870
             10.[[012]])
 
5871
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5872
               ;;
 
5873
             10.*)
 
5874
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
5875
               ;;
 
5876
           esac
 
5877
         fi
 
5878
         ;;
5384
5879
      esac
5385
 
        lt_int_apple_cc_single_mod=no
 
5880
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5881
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5882
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5883
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5884
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
5885
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5886
    if test "$GCC" = yes ; then
5386
5887
        output_verbose_link_cmd='echo'
5387
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5388
 
          lt_int_apple_cc_single_mod=yes
5389
 
        fi
5390
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5391
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5392
 
        else
5393
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5394
 
      fi
5395
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5888
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5889
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5396
5890
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5397
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5398
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5399
 
        else
5400
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5401
 
        fi
 
5891
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
5892
      _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}'
 
5893
    else
 
5894
      case $cc_basename in
 
5895
        xlc*)
 
5896
         output_verbose_link_cmd='echo'
 
5897
         _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'
 
5898
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5899
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
5900
         _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}'
5402
5901
          _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}'
5403
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5404
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5405
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5406
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5407
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5408
 
    else
5409
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5902
          ;;
 
5903
       *)
 
5904
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5905
          ;;
 
5906
      esac
5410
5907
    fi
5411
5908
      ;;
5412
5909
 
5440
5937
      ;;
5441
5938
 
5442
5939
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5443
 
    freebsd* | kfreebsd*-gnu)
 
5940
    freebsd* | kfreebsd*-gnu | dragonfly*)
5444
5941
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5445
5942
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5446
5943
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5551
6048
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5552
6049
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5553
6050
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6051
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5554
6052
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5555
6053
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5556
6054
      else
5596
6094
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5597
6095
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5598
6096
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5599
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6097
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5600
6098
 
5601
6099
        # Both c and cxx compiler support -rpath directly
5602
6100
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5615
6113
    solaris*)
5616
6114
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5617
6115
      if test "$GCC" = yes; then
 
6116
        wlarc='${wl}'
5618
6117
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5619
6118
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5620
6119
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5621
6120
      else
 
6121
        wlarc=''
5622
6122
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5623
6123
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5624
6124
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5627
6127
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5628
6128
      case $host_os in
5629
6129
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5630
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5631
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6130
      *)
 
6131
        # The compiler driver will combine linker options so we
 
6132
        # cannot just pass the convience library names through
 
6133
        # without $wl, iff we do not link with $LD.
 
6134
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6135
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6136
        case $wlarc in
 
6137
        '')
 
6138
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6139
        *)
 
6140
          _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' ;;
 
6141
        esac ;;
5632
6142
      esac
5633
6143
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5634
6144
      ;;
5889
6399
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5890
6400
# along with /bin/sed that truncates output.
5891
6401
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5892
 
  test ! -f $lt_ac_sed && break
 
6402
  test ! -f $lt_ac_sed && continue
5893
6403
  cat /dev/null > conftest.in
5894
6404
  lt_ac_count=0
5895
6405
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5914
6424
    fi
5915
6425
  done
5916
6426
done
 
6427
])
5917
6428
SED=$lt_cv_path_SED
5918
 
])
5919
6429
AC_MSG_RESULT([$SED])
5920
6430
])
5921
6431
 
5977
6487
 
5978
6488
 
5979
6489
 
5980
 
#                                                        -*- Autoconf -*-
5981
 
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
5982
 
# Generated from amversion.in; do not edit by hand.
5983
 
 
5984
 
# This program is free software; you can redistribute it and/or modify
5985
 
# it under the terms of the GNU General Public License as published by
5986
 
# the Free Software Foundation; either version 2, or (at your option)
5987
 
# any later version.
5988
 
 
5989
 
# This program is distributed in the hope that it will be useful,
5990
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5991
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5992
 
# GNU General Public License for more details.
5993
 
 
5994
 
# You should have received a copy of the GNU General Public License
5995
 
# along with this program; if not, write to the Free Software
5996
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6490
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6491
#
 
6492
# This file is free software; the Free Software Foundation
 
6493
# gives unlimited permission to copy and/or distribute it,
 
6494
# with or without modifications, as long as this notice is preserved.
5997
6495
 
5998
6496
# AM_AUTOMAKE_VERSION(VERSION)
5999
6497
# ----------------------------
6000
6498
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6001
6499
# generated from the m4 files accompanying Automake X.Y.
6002
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
 
6500
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6003
6501
 
6004
6502
# AM_SET_CURRENT_AUTOMAKE_VERSION
6005
6503
# -------------------------------
6006
6504
# Call AM_AUTOMAKE_VERSION so it can be traced.
6007
6505
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6008
6506
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6009
 
         [AM_AUTOMAKE_VERSION([1.8.3])])
6010
 
 
6011
 
# AM_AUX_DIR_EXPAND
6012
 
 
6013
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6014
 
 
6015
 
# This program is free software; you can redistribute it and/or modify
6016
 
# it under the terms of the GNU General Public License as published by
6017
 
# the Free Software Foundation; either version 2, or (at your option)
6018
 
# any later version.
6019
 
 
6020
 
# This program is distributed in the hope that it will be useful,
6021
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6022
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6023
 
# GNU General Public License for more details.
6024
 
 
6025
 
# You should have received a copy of the GNU General Public License
6026
 
# along with this program; if not, write to the Free Software
6027
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6028
 
# 02111-1307, USA.
 
6507
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6508
 
 
6509
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
6510
 
 
6511
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6512
#
 
6513
# This file is free software; the Free Software Foundation
 
6514
# gives unlimited permission to copy and/or distribute it,
 
6515
# with or without modifications, as long as this notice is preserved.
6029
6516
 
6030
6517
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6031
6518
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
6072
6559
am_aux_dir=`cd $ac_aux_dir && pwd`
6073
6560
])
6074
6561
 
6075
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
6076
 
 
6077
 
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6078
 
 
6079
 
# This program is free software; you can redistribute it and/or modify
6080
 
# it under the terms of the GNU General Public License as published by
6081
 
# the Free Software Foundation; either version 2, or (at your option)
6082
 
# any later version.
6083
 
 
6084
 
# This program is distributed in the hope that it will be useful,
6085
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6086
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6087
 
# GNU General Public License for more details.
6088
 
 
6089
 
# You should have received a copy of the GNU General Public License
6090
 
# along with this program; if not, write to the Free Software
6091
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6092
 
# 02111-1307, USA.
6093
 
 
6094
 
# serial 6
 
6562
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
6563
 
 
6564
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6565
# Free Software Foundation, Inc.
 
6566
#
 
6567
# This file is free software; the Free Software Foundation
 
6568
# gives unlimited permission to copy and/or distribute it,
 
6569
# with or without modifications, as long as this notice is preserved.
 
6570
 
 
6571
# serial 7
6095
6572
 
6096
6573
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6097
6574
# -------------------------------------
6111
6588
fi
6112
6589
AC_CONFIG_COMMANDS_PRE(
6113
6590
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6114
 
  AC_MSG_ERROR([conditional "$1" was never defined.
6115
 
Usually this means the macro was only invoked conditionally.])
 
6591
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
6592
Usually this means the macro was only invoked conditionally.]])
6116
6593
fi])])
6117
6594
 
6118
 
# serial 7                                              -*- Autoconf -*-
6119
6595
 
6120
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
6596
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6121
6597
# Free Software Foundation, Inc.
6122
 
 
6123
 
# This program is free software; you can redistribute it and/or modify
6124
 
# it under the terms of the GNU General Public License as published by
6125
 
# the Free Software Foundation; either version 2, or (at your option)
6126
 
# any later version.
6127
 
 
6128
 
# This program is distributed in the hope that it will be useful,
6129
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6130
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6131
 
# GNU General Public License for more details.
6132
 
 
6133
 
# You should have received a copy of the GNU General Public License
6134
 
# along with this program; if not, write to the Free Software
6135
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6136
 
# 02111-1307, USA.
6137
 
 
 
6598
#
 
6599
# This file is free software; the Free Software Foundation
 
6600
# gives unlimited permission to copy and/or distribute it,
 
6601
# with or without modifications, as long as this notice is preserved.
 
6602
 
 
6603
# serial 8
6138
6604
 
6139
6605
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6140
6606
# written in clear, in which case automake, when reading aclocal.m4,
6143
6609
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6144
6610
 
6145
6611
 
6146
 
 
6147
6612
# _AM_DEPENDENCIES(NAME)
6148
6613
# ----------------------
6149
6614
# See how the compiler implements dependency checking.
6232
6697
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6233
6698
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6234
6699
      # icc doesn't choke on unknown options, it will just issue warnings
6235
 
      # (even with -Werror).  So we grep stderr for any message
6236
 
      # that says an option was ignored.
6237
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
6700
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6701
      # that says an option was ignored or not supported.
 
6702
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6703
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6704
      # The diagnosis changed in icc 8.0:
 
6705
      #   icc: Command line remark: option '-MP' not supported
 
6706
      if (grep 'ignoring option' conftest.err ||
 
6707
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6238
6708
        am_cv_$1_dependencies_compiler_type=$depmode
6239
6709
        break
6240
6710
      fi
6278
6748
AC_SUBST([AMDEPBACKSLASH])
6279
6749
])
6280
6750
 
6281
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
6282
 
 
6283
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6284
 
 
6285
 
# This program is free software; you can redistribute it and/or modify
6286
 
# it under the terms of the GNU General Public License as published by
6287
 
# the Free Software Foundation; either version 2, or (at your option)
6288
 
# any later version.
6289
 
 
6290
 
# This program is distributed in the hope that it will be useful,
6291
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6292
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6293
 
# GNU General Public License for more details.
6294
 
 
6295
 
# You should have received a copy of the GNU General Public License
6296
 
# along with this program; if not, write to the Free Software
6297
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6298
 
# 02111-1307, USA.
6299
 
 
6300
 
#serial 2
 
6751
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
6752
 
 
6753
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6754
# Free Software Foundation, Inc.
 
6755
#
 
6756
# This file is free software; the Free Software Foundation
 
6757
# gives unlimited permission to copy and/or distribute it,
 
6758
# with or without modifications, as long as this notice is preserved.
 
6759
 
 
6760
#serial 3
6301
6761
 
6302
6762
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6303
6763
# ------------------------------
6316
6776
  else
6317
6777
    continue
6318
6778
  fi
6319
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
6320
 
  # Extract the definition of DEP_FILES from the Makefile without
6321
 
  # running `make'.
 
6779
  # Extract the definition of DEPDIR, am__include, and am__quote
 
6780
  # from the Makefile without running `make'.
6322
6781
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6323
6782
  test -z "$DEPDIR" && continue
 
6783
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6784
  test -z "am__include" && continue
 
6785
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6324
6786
  # When using ansi2knr, U may be empty or an underscore; expand it
6325
6787
  U=`sed -n 's/^U = //p' < "$mf"`
6326
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6327
 
  # We invoke sed twice because it is the simplest approach to
6328
 
  # changing $(DEPDIR) to its actual value in the expansion.
6329
 
  for file in `sed -n '
6330
 
    /^DEP_FILES = .*\\\\$/ {
6331
 
      s/^DEP_FILES = //
6332
 
      :loop
6333
 
        s/\\\\$//
6334
 
        p
6335
 
        n
6336
 
        /\\\\$/ b loop
6337
 
      p
6338
 
    }
6339
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
6788
  # Find all dependency output files, they are included files with
 
6789
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6790
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
6791
  # expansion.
 
6792
  for file in `sed -n "
 
6793
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6340
6794
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6341
6795
    # Make sure the directory exists.
6342
6796
    test -f "$dirpart/$file" && continue
6362
6816
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6363
6817
])
6364
6818
 
6365
 
# Do all the work for Automake.                            -*- Autoconf -*-
6366
 
 
6367
 
# This macro actually does too much some checks are only needed if
 
6819
# Do all the work for Automake.                             -*- Autoconf -*-
 
6820
 
 
6821
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6822
# Free Software Foundation, Inc.
 
6823
#
 
6824
# This file is free software; the Free Software Foundation
 
6825
# gives unlimited permission to copy and/or distribute it,
 
6826
# with or without modifications, as long as this notice is preserved.
 
6827
 
 
6828
# serial 12
 
6829
 
 
6830
# This macro actually does too much.  Some checks are only needed if
6368
6831
# your package does certain things.  But this isn't really a big deal.
6369
6832
 
6370
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6371
 
# Free Software Foundation, Inc.
6372
 
 
6373
 
# This program is free software; you can redistribute it and/or modify
6374
 
# it under the terms of the GNU General Public License as published by
6375
 
# the Free Software Foundation; either version 2, or (at your option)
6376
 
# any later version.
6377
 
 
6378
 
# This program is distributed in the hope that it will be useful,
6379
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6380
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6381
 
# GNU General Public License for more details.
6382
 
 
6383
 
# You should have received a copy of the GNU General Public License
6384
 
# along with this program; if not, write to the Free Software
6385
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6386
 
# 02111-1307, USA.
6387
 
 
6388
 
# serial 11
6389
 
 
6390
6833
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6391
6834
# AM_INIT_AUTOMAKE([OPTIONS])
6392
6835
# -----------------------------------------------
6443
6886
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6444
6887
AM_MISSING_PROG(AUTOHEADER, autoheader)
6445
6888
AM_MISSING_PROG(MAKEINFO, makeinfo)
6446
 
AM_MISSING_PROG(AMTAR, tar)
6447
6889
AM_PROG_INSTALL_SH
6448
6890
AM_PROG_INSTALL_STRIP
6449
6891
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6452
6894
AC_REQUIRE([AC_PROG_AWK])dnl
6453
6895
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6454
6896
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6455
 
 
 
6897
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
6898
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
6899
                             [_AM_PROG_TAR([v7])])])
6456
6900
_AM_IF_OPTION([no-dependencies],,
6457
6901
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6458
6902
                  [_AM_DEPENDENCIES(CC)],
6486
6930
done
6487
6931
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6488
6932
 
 
6933
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6934
#
 
6935
# This file is free software; the Free Software Foundation
 
6936
# gives unlimited permission to copy and/or distribute it,
 
6937
# with or without modifications, as long as this notice is preserved.
 
6938
 
6489
6939
# AM_PROG_INSTALL_SH
6490
6940
# ------------------
6491
6941
# Define $install_sh.
6492
 
 
6493
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6494
 
 
6495
 
# This program is free software; you can redistribute it and/or modify
6496
 
# it under the terms of the GNU General Public License as published by
6497
 
# the Free Software Foundation; either version 2, or (at your option)
6498
 
# any later version.
6499
 
 
6500
 
# This program is distributed in the hope that it will be useful,
6501
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6502
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6503
 
# GNU General Public License for more details.
6504
 
 
6505
 
# You should have received a copy of the GNU General Public License
6506
 
# along with this program; if not, write to the Free Software
6507
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6508
 
# 02111-1307, USA.
6509
 
 
6510
6942
AC_DEFUN([AM_PROG_INSTALL_SH],
6511
6943
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6512
6944
install_sh=${install_sh-"$am_aux_dir/install-sh"}
6513
6945
AC_SUBST(install_sh)])
6514
6946
 
6515
 
#                                                          -*- Autoconf -*-
6516
 
# Copyright (C) 2003  Free Software Foundation, Inc.
6517
 
 
6518
 
# This program is free software; you can redistribute it and/or modify
6519
 
# it under the terms of the GNU General Public License as published by
6520
 
# the Free Software Foundation; either version 2, or (at your option)
6521
 
# any later version.
6522
 
 
6523
 
# This program is distributed in the hope that it will be useful,
6524
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6525
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6526
 
# GNU General Public License for more details.
6527
 
 
6528
 
# You should have received a copy of the GNU General Public License
6529
 
# along with this program; if not, write to the Free Software
6530
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6531
 
# 02111-1307, USA.
6532
 
 
6533
 
# serial 1
 
6947
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
6948
#
 
6949
# This file is free software; the Free Software Foundation
 
6950
# gives unlimited permission to copy and/or distribute it,
 
6951
# with or without modifications, as long as this notice is preserved.
 
6952
 
 
6953
# serial 2
6534
6954
 
6535
6955
# Check whether the underlying file-system supports filenames
6536
6956
# with a leading dot.  For instance MS-DOS doesn't.
6545
6965
rmdir .tst 2>/dev/null
6546
6966
AC_SUBST([am__leading_dot])])
6547
6967
 
6548
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
6549
 
 
6550
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6551
 
 
6552
 
# This program is free software; you can redistribute it and/or modify
6553
 
# it under the terms of the GNU General Public License as published by
6554
 
# the Free Software Foundation; either version 2, or (at your option)
6555
 
# any later version.
6556
 
 
6557
 
# This program is distributed in the hope that it will be useful,
6558
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6559
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6560
 
# GNU General Public License for more details.
6561
 
 
6562
 
# You should have received a copy of the GNU General Public License
6563
 
# along with this program; if not, write to the Free Software
6564
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6565
 
# 02111-1307, USA.
6566
 
 
6567
 
# serial 2
 
6968
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
6969
# From Jim Meyering
 
6970
 
 
6971
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
6972
# Free Software Foundation, Inc.
 
6973
#
 
6974
# This file is free software; the Free Software Foundation
 
6975
# gives unlimited permission to copy and/or distribute it,
 
6976
# with or without modifications, as long as this notice is preserved.
 
6977
 
 
6978
# serial 4
 
6979
 
 
6980
AC_DEFUN([AM_MAINTAINER_MODE],
 
6981
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
6982
  dnl maintainer-mode is disabled by default
 
6983
  AC_ARG_ENABLE(maintainer-mode,
 
6984
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
6985
                          (and sometimes confusing) to the casual installer],
 
6986
      USE_MAINTAINER_MODE=$enableval,
 
6987
      USE_MAINTAINER_MODE=no)
 
6988
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
6989
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
6990
  MAINT=$MAINTAINER_MODE_TRUE
 
6991
  AC_SUBST(MAINT)dnl
 
6992
]
 
6993
)
 
6994
 
 
6995
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
6996
 
 
6997
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
6998
 
 
6999
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7000
#
 
7001
# This file is free software; the Free Software Foundation
 
7002
# gives unlimited permission to copy and/or distribute it,
 
7003
# with or without modifications, as long as this notice is preserved.
 
7004
 
 
7005
# serial 3
6568
7006
 
6569
7007
# AM_MAKE_INCLUDE()
6570
7008
# -----------------
6608
7046
rm -f confinc confmf
6609
7047
])
6610
7048
 
6611
 
#  -*- Autoconf -*-
6612
 
 
6613
 
 
6614
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
6615
 
 
6616
 
# This program is free software; you can redistribute it and/or modify
6617
 
# it under the terms of the GNU General Public License as published by
6618
 
# the Free Software Foundation; either version 2, or (at your option)
6619
 
# any later version.
6620
 
 
6621
 
# This program is distributed in the hope that it will be useful,
6622
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6623
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6624
 
# GNU General Public License for more details.
6625
 
 
6626
 
# You should have received a copy of the GNU General Public License
6627
 
# along with this program; if not, write to the Free Software
6628
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6629
 
# 02111-1307, USA.
6630
 
 
6631
 
# serial 3
 
7049
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
7050
 
 
7051
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7052
# Free Software Foundation, Inc.
 
7053
#
 
7054
# This file is free software; the Free Software Foundation
 
7055
# gives unlimited permission to copy and/or distribute it,
 
7056
# with or without modifications, as long as this notice is preserved.
 
7057
 
 
7058
# serial 4
6632
7059
 
6633
7060
# AM_MISSING_PROG(NAME, PROGRAM)
6634
7061
# ------------------------------
6654
7081
fi
6655
7082
])
6656
7083
 
 
7084
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7085
#
 
7086
# This file is free software; the Free Software Foundation
 
7087
# gives unlimited permission to copy and/or distribute it,
 
7088
# with or without modifications, as long as this notice is preserved.
 
7089
 
6657
7090
# AM_PROG_MKDIR_P
6658
7091
# ---------------
6659
7092
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6660
 
 
6661
 
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
6662
 
 
6663
 
# This program is free software; you can redistribute it and/or modify
6664
 
# it under the terms of the GNU General Public License as published by
6665
 
# the Free Software Foundation; either version 2, or (at your option)
6666
 
# any later version.
6667
 
 
6668
 
# This program is distributed in the hope that it will be useful,
6669
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6670
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6671
 
# GNU General Public License for more details.
6672
 
 
6673
 
# You should have received a copy of the GNU General Public License
6674
 
# along with this program; if not, write to the Free Software
6675
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6676
 
# 02111-1307, USA.
6677
 
 
 
7093
#
6678
7094
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6679
7095
# created by `make install' are always world readable, even if the
6680
7096
# installer happens to have an overly restrictive umask (e.g. 077).
6695
7111
# this.)
6696
7112
AC_DEFUN([AM_PROG_MKDIR_P],
6697
7113
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6698
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
6699
 
  # argument.  Indeed, we sometimes output rules like
 
7114
  # We used to keeping the `.' as first argument, in order to
 
7115
  # allow $(mkdir_p) to be used without argument.  As in
6700
7116
  #   $(mkdir_p) $(somedir)
6701
 
  # where $(somedir) is conditionally defined.
6702
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
6703
 
  # expensive solution, as it forces Make to start a sub-shell.)
6704
 
  mkdir_p='mkdir -p -- .'
 
7117
  # where $(somedir) is conditionally defined.  However this is wrong
 
7118
  # for two reasons:
 
7119
  #  1. if the package is installed by a user who cannot write `.'
 
7120
  #     make install will fail,
 
7121
  #  2. the above comment should most certainly read
 
7122
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
7123
  #     so it does not work when $(somedir) is undefined and
 
7124
  #     $(DESTDIR) is not.
 
7125
  #  To support the latter case, we have to write
 
7126
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
7127
  #  so the `.' trick is pointless.
 
7128
  mkdir_p='mkdir -p --'
6705
7129
else
6706
7130
  # On NextStep and OpenStep, the `mkdir' command does not
6707
7131
  # recognize any option.  It will interpret all options as
6720
7144
fi
6721
7145
AC_SUBST([mkdir_p])])
6722
7146
 
6723
 
# Helper functions for option handling.                    -*- Autoconf -*-
6724
 
 
6725
 
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
6726
 
 
6727
 
# This program is free software; you can redistribute it and/or modify
6728
 
# it under the terms of the GNU General Public License as published by
6729
 
# the Free Software Foundation; either version 2, or (at your option)
6730
 
# any later version.
6731
 
 
6732
 
# This program is distributed in the hope that it will be useful,
6733
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6734
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6735
 
# GNU General Public License for more details.
6736
 
 
6737
 
# You should have received a copy of the GNU General Public License
6738
 
# along with this program; if not, write to the Free Software
6739
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6740
 
# 02111-1307, USA.
6741
 
 
6742
 
# serial 2
 
7147
# Helper functions for option handling.                     -*- Autoconf -*-
 
7148
 
 
7149
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7150
#
 
7151
# This file is free software; the Free Software Foundation
 
7152
# gives unlimited permission to copy and/or distribute it,
 
7153
# with or without modifications, as long as this notice is preserved.
 
7154
 
 
7155
# serial 3
6743
7156
 
6744
7157
# _AM_MANGLE_OPTION(NAME)
6745
7158
# -----------------------
6764
7177
AC_DEFUN([_AM_IF_OPTION],
6765
7178
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6766
7179
 
6767
 
#
6768
 
# Check to make sure that the build environment is sane.
6769
 
#
6770
 
 
6771
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6772
 
 
6773
 
# This program is free software; you can redistribute it and/or modify
6774
 
# it under the terms of the GNU General Public License as published by
6775
 
# the Free Software Foundation; either version 2, or (at your option)
6776
 
# any later version.
6777
 
 
6778
 
# This program is distributed in the hope that it will be useful,
6779
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6780
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6781
 
# GNU General Public License for more details.
6782
 
 
6783
 
# You should have received a copy of the GNU General Public License
6784
 
# along with this program; if not, write to the Free Software
6785
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6786
 
# 02111-1307, USA.
6787
 
 
6788
 
# serial 3
 
7180
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
7181
 
 
7182
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7183
# Free Software Foundation, Inc.
 
7184
#
 
7185
# This file is free software; the Free Software Foundation
 
7186
# gives unlimited permission to copy and/or distribute it,
 
7187
# with or without modifications, as long as this notice is preserved.
 
7188
 
 
7189
# serial 4
6789
7190
 
6790
7191
# AM_SANITY_CHECK
6791
7192
# ---------------
6828
7229
fi
6829
7230
AC_MSG_RESULT(yes)])
6830
7231
 
 
7232
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7233
#
 
7234
# This file is free software; the Free Software Foundation
 
7235
# gives unlimited permission to copy and/or distribute it,
 
7236
# with or without modifications, as long as this notice is preserved.
 
7237
 
6831
7238
# AM_PROG_INSTALL_STRIP
6832
 
 
6833
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6834
 
 
6835
 
# This program is free software; you can redistribute it and/or modify
6836
 
# it under the terms of the GNU General Public License as published by
6837
 
# the Free Software Foundation; either version 2, or (at your option)
6838
 
# any later version.
6839
 
 
6840
 
# This program is distributed in the hope that it will be useful,
6841
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6842
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6843
 
# GNU General Public License for more details.
6844
 
 
6845
 
# You should have received a copy of the GNU General Public License
6846
 
# along with this program; if not, write to the Free Software
6847
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6848
 
# 02111-1307, USA.
6849
 
 
 
7239
# ---------------------
6850
7240
# One issue with vendor `install' (even GNU) is that you can't
6851
7241
# specify the program used to strip binaries.  This is especially
6852
7242
# annoying in cross-compiling environments, where the build's strip
6867
7257
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6868
7258
AC_SUBST([INSTALL_STRIP_PROGRAM])])
6869
7259
 
 
7260
# Check how to create a tarball.                            -*- Autoconf -*-
 
7261
 
 
7262
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
7263
#
 
7264
# This file is free software; the Free Software Foundation
 
7265
# gives unlimited permission to copy and/or distribute it,
 
7266
# with or without modifications, as long as this notice is preserved.
 
7267
 
 
7268
# serial 2
 
7269
 
 
7270
# _AM_PROG_TAR(FORMAT)
 
7271
# --------------------
 
7272
# Check how to create a tarball in format FORMAT.
 
7273
# FORMAT should be one of `v7', `ustar', or `pax'.
 
7274
#
 
7275
# Substitute a variable $(am__tar) that is a command
 
7276
# writing to stdout a FORMAT-tarball containing the directory
 
7277
# $tardir.
 
7278
#     tardir=directory && $(am__tar) > result.tar
 
7279
#
 
7280
# Substitute a variable $(am__untar) that extract such
 
7281
# a tarball read from stdin.
 
7282
#     $(am__untar) < result.tar
 
7283
AC_DEFUN([_AM_PROG_TAR],
 
7284
[# Always define AMTAR for backward compatibility.
 
7285
AM_MISSING_PROG([AMTAR], [tar])
 
7286
m4_if([$1], [v7],
 
7287
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7288
     [m4_case([$1], [ustar],, [pax],,
 
7289
              [m4_fatal([Unknown tar format])])
 
7290
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7291
# Loop over all known methods to create a tar archive until one works.
 
7292
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7293
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7294
# Do not fold the above two line into one, because Tru64 sh and
 
7295
# Solaris sh will not grok spaces in the rhs of `-'.
 
7296
for _am_tool in $_am_tools
 
7297
do
 
7298
  case $_am_tool in
 
7299
  gnutar)
 
7300
    for _am_tar in tar gnutar gtar;
 
7301
    do
 
7302
      AM_RUN_LOG([$_am_tar --version]) && break
 
7303
    done
 
7304
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7305
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7306
    am__untar="$_am_tar -xf -"
 
7307
    ;;
 
7308
  plaintar)
 
7309
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7310
    # ustar tarball either.
 
7311
    (tar --version) >/dev/null 2>&1 && continue
 
7312
    am__tar='tar chf - "$$tardir"'
 
7313
    am__tar_='tar chf - "$tardir"'
 
7314
    am__untar='tar xf -'
 
7315
    ;;
 
7316
  pax)
 
7317
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7318
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7319
    am__untar='pax -r'
 
7320
    ;;
 
7321
  cpio)
 
7322
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7323
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7324
    am__untar='cpio -i -H $1 -d'
 
7325
    ;;
 
7326
  none)
 
7327
    am__tar=false
 
7328
    am__tar_=false
 
7329
    am__untar=false
 
7330
    ;;
 
7331
  esac
 
7332
 
 
7333
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7334
  # and am__untar set.
 
7335
  test -n "${am_cv_prog_tar_$1}" && break
 
7336
 
 
7337
  # tar/untar a dummy directory, and stop if the command works
 
7338
  rm -rf conftest.dir
 
7339
  mkdir conftest.dir
 
7340
  echo GrepMe > conftest.dir/file
 
7341
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7342
  rm -rf conftest.dir
 
7343
  if test -s conftest.tar; then
 
7344
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7345
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
7346
  fi
 
7347
done
 
7348
rm -rf conftest.dir
 
7349
 
 
7350
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7351
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7352
AC_SUBST([am__tar])
 
7353
AC_SUBST([am__untar])
 
7354
]) # _AM_PROG_TAR
 
7355