Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by hiroo, Tue Aug 14 13:43:20 2001 UTC revision 1.3 by aono, Wed Jun 4 08:35:02 2003 UTC
# Line 1  Line 1 
1  dnl aclocal.m4 generated automatically by aclocal 1.4-p5  # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
2    
3  dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.  # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4  dnl This file is free software; the Free Software Foundation  # Free Software Foundation, Inc.
5  dnl gives unlimited permission to copy and/or distribute it,  # This file is free software; the Free Software Foundation
6  dnl with or without modifications, as long as this notice is preserved.  # gives unlimited permission to copy and/or distribute it,
7    # with or without modifications, as long as this notice is preserved.
8    
9  dnl This program is distributed in the hope that it will be useful,  # This program is distributed in the hope that it will be useful,
10  dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without  # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11  dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12  dnl PARTICULAR PURPOSE.  # PARTICULAR PURPOSE.
13    
14  # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15    
16  # serial 46 AC_PROG_LIBTOOL  # serial 47 AC_PROG_LIBTOOL
17    
18    
19    # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
20    # -----------------------------------------------------------
21    # If this macro is not defined by Autoconf, define it here.
22    m4_ifdef([AC_PROVIDE_IFELSE],
23             [],
24             [m4_define([AC_PROVIDE_IFELSE],
25                     [m4_ifdef([AC_PROVIDE_$1],
26                               [$2], [$3])])])
27    
28    
29    # AC_PROG_LIBTOOL
30    # ---------------
31  AC_DEFUN([AC_PROG_LIBTOOL],  AC_DEFUN([AC_PROG_LIBTOOL],
32    [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
33    dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
34    dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
35      AC_PROVIDE_IFELSE([AC_PROG_CXX],
36        [AC_LIBTOOL_CXX],
37        [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
38      ])])
39    dnl And a similar setup for Fortran 77 support
40      AC_PROVIDE_IFELSE([AC_PROG_F77],
41        [AC_LIBTOOL_F77],
42        [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
43    ])])
44    
45    dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
46    dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
47    dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
48      AC_PROVIDE_IFELSE([AC_PROG_GCJ],
49        [AC_LIBTOOL_GCJ],
50        [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
51          [AC_LIBTOOL_GCJ],
52          [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
53            [AC_LIBTOOL_GCJ],
54          [ifdef([AC_PROG_GCJ],
55                 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
56           ifdef([A][M_PROG_GCJ],
57                 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
58           ifdef([LT_AC_PROG_GCJ],
59                 [define([LT_AC_PROG_GCJ],
60                    defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
61    ])])# AC_PROG_LIBTOOL
62    
63    
64    # _AC_PROG_LIBTOOL
65    # ----------------
66    AC_DEFUN([_AC_PROG_LIBTOOL],
67  [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl  [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
68    AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
69    AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
70    AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
71    
72  # This can be used to rebuild libtool when needed  # This can be used to rebuild libtool when needed
73  LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"  LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
# Line 25  AC_SUBST(LIBTOOL)dnl Line 78  AC_SUBST(LIBTOOL)dnl
78    
79  # Prevent multiple expansion  # Prevent multiple expansion
80  define([AC_PROG_LIBTOOL], [])  define([AC_PROG_LIBTOOL], [])
81  ])  ])# _AC_PROG_LIBTOOL
82    
83    
84    # AC_LIBTOOL_SETUP
85    # ----------------
86  AC_DEFUN([AC_LIBTOOL_SETUP],  AC_DEFUN([AC_LIBTOOL_SETUP],
87  [AC_PREREQ(2.13)dnl  [AC_PREREQ(2.50)dnl
88  AC_REQUIRE([AC_ENABLE_SHARED])dnl  AC_REQUIRE([AC_ENABLE_SHARED])dnl
89  AC_REQUIRE([AC_ENABLE_STATIC])dnl  AC_REQUIRE([AC_ENABLE_STATIC])dnl
90  AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl  AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
# Line 38  AC_REQUIRE([AC_PROG_CC])dnl Line 94  AC_REQUIRE([AC_PROG_CC])dnl
94  AC_REQUIRE([AC_PROG_LD])dnl  AC_REQUIRE([AC_PROG_LD])dnl
95  AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl  AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
96  AC_REQUIRE([AC_PROG_NM])dnl  AC_REQUIRE([AC_PROG_NM])dnl
97    
98  AC_REQUIRE([AC_PROG_LN_S])dnl  AC_REQUIRE([AC_PROG_LN_S])dnl
99  AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl  AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
100    # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
101  AC_REQUIRE([AC_OBJEXT])dnl  AC_REQUIRE([AC_OBJEXT])dnl
102  AC_REQUIRE([AC_EXEEXT])dnl  AC_REQUIRE([AC_EXEEXT])dnl
103  dnl  dnl
104    
105  _LT_AC_PROG_ECHO_BACKSLASH  AC_LIBTOOL_SYS_MAX_CMD_LEN
106  # Only perform the check for file, if the check method requires it  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
107  case $deplibs_check_method in  AC_LIBTOOL_OBJDIR
 file_magic*)  
   if test "$file_magic_cmd" = '$MAGIC_CMD'; then  
     AC_PATH_MAGIC  
   fi  
   ;;  
 esac  
   
 AC_CHECK_TOOL(RANLIB, ranlib, :)  
 AC_CHECK_TOOL(STRIP, strip, :)  
   
 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)  
 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],  
 enable_win32_dll=yes, enable_win32_dll=no)  
   
 AC_ARG_ENABLE(libtool-lock,  
   [  --disable-libtool-lock  avoid locking (might break parallel builds)])  
 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes  
108    
109  # Some flags need to be propagated to the compiler or linker for good  AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
110  # libtool support.  _LT_AC_PROG_ECHO_BACKSLASH
 case $host in  
 *-*-irix6*)  
   # Find out which ABI we are using.  
   echo '[#]line __oline__ "configure"' > conftest.$ac_ext  
   if AC_TRY_EVAL(ac_compile); then  
     case `/usr/bin/file conftest.$ac_objext` in  
     *32-bit*)  
       LD="${LD-ld} -32"  
       ;;  
     *N32*)  
       LD="${LD-ld} -n32"  
       ;;  
     *64-bit*)  
       LD="${LD-ld} -64"  
       ;;  
     esac  
   fi  
   rm -rf conftest*  
   ;;  
111    
112  *-*-sco3.2v5*)  case $host_os in
113    # On SCO OpenServer 5, we need -belf to get full-featured binaries.  aix3*)
114    SAVE_CFLAGS="$CFLAGS"    # AIX sometimes has problems with the GCC collect2 program.  For some
115    CFLAGS="$CFLAGS -belf"    # reason, if we set the COLLECT_NAMES environment variable, the problems
116    AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,    # vanish in a puff of smoke.
117      [AC_LANG_SAVE    if test "X${COLLECT_NAMES+set}" != Xset; then
118       AC_LANG_C      COLLECT_NAMES=
119       AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])      export COLLECT_NAMES
      AC_LANG_RESTORE])  
   if test x"$lt_cv_cc_needs_belf" != x"yes"; then  
     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf  
     CFLAGS="$SAVE_CFLAGS"  
120    fi    fi
121    ;;    ;;
122    esac
123    
124  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],  # Sed substitution that helps us do robust quoting.  It backslashifies
125  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)  # metacharacters that are still active within double-quoted strings.
126    AC_CHECK_TOOL(DLLTOOL, dlltool, false)  Xsed='sed -e s/^X//'
127    AC_CHECK_TOOL(AS, as, false)  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
   AC_CHECK_TOOL(OBJDUMP, objdump, false)  
128    
129    # recent cygwin and mingw systems supply a stub DllMain which the user  # Same as above, but do not quote variable references.
130    # can override, but on older systems we have to supply one  [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
   AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,  
     [AC_TRY_LINK([],  
       [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);  
       DllMain (0, 0, 0);],  
       [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])  
   
   case $host/$CC in  
   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)  
     # old mingw systems require "-dll" to link a DLL, while more recent ones  
     # require "-mdll"  
     SAVE_CFLAGS="$CFLAGS"  
     CFLAGS="$CFLAGS -mdll"  
     AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,  
       [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])  
     CFLAGS="$SAVE_CFLAGS" ;;  
   *-*-cygwin* | *-*-pw32*)  
     # cygwin systems need to pass --dll to the linker, and not link  
     # crt.o which will require a WinMain@16 definition.  
     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;  
   esac  
   ;;  
   ])  
 esac  
131    
132  _LT_AC_LTCONFIG_HACK  # Sed substitution to delay expansion of an escaped shell variable in a
133    # double_quote_subst'ed string.
134    delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
135    
136  ])  # Sed substitution to avoid accidental globbing in evaled expressions
137    no_glob_subst='s/\*/\\\*/g'
138    
139  # _LT_AC_CHECK_DLFCN  # Constants:
140  # --------------------  rm="rm -f"
 AC_DEFUN(_LT_AC_CHECK_DLFCN,  
 [AC_CHECK_HEADERS(dlfcn.h)  
 ])# _LT_AC_CHECK_DLFCN  
141    
142  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE  # Global variables:
143  # ---------------------------------  default_ofile=libtool
144  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],  can_build_shared=yes
 [AC_REQUIRE([AC_CANONICAL_HOST])  
 AC_REQUIRE([AC_PROG_NM])  
 AC_REQUIRE([AC_OBJEXT])  
 # Check for command to grab the raw symbol name followed by C symbol from nm.  
 AC_MSG_CHECKING([command to parse $NM output])  
 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl  
145    
146  # These are sane defaults that work on at least a few old systems.  # All known linkers require a `.a' archive for static linking (except M$VC,
147  # [They come from Ultrix.  What could be older than Ultrix?!! ;)]  # which needs '.lib').
148    libext=a
149    ltmain="$ac_aux_dir/ltmain.sh"
150    ofile="$default_ofile"
151    with_gnu_ld="$lt_cv_prog_gnu_ld"
152    
153  # Character class describing NM global symbol codes.  AC_CHECK_TOOL(AR, ar, false)
154  [symcode='[BCDEGRST]']  AC_CHECK_TOOL(RANLIB, ranlib, :)
155    AC_CHECK_TOOL(STRIP, strip, :)
156    
157  # Regexp to match symbols that can be accessed directly from C.  old_CC="$CC"
158  [sympat='\([_A-Za-z][_A-Za-z0-9]*\)']  old_CFLAGS="$CFLAGS"
159    
160  # Transform the above into a raw symbol and a C symbol.  # Set sane defaults for various variables
161  symxfrm='\1 \2\3 \3'  test -z "$AR" && AR=ar
162    test -z "$AR_FLAGS" && AR_FLAGS=cru
163    test -z "$AS" && AS=as
164    test -z "$CC" && CC=cc
165    test -z "$LTCC" && LTCC=$CC
166    test -z "$DLLTOOL" && DLLTOOL=dlltool
167    test -z "$LD" && LD=ld
168    test -z "$LN_S" && LN_S="ln -s"
169    test -z "$MAGIC_CMD" && MAGIC_CMD=file
170    test -z "$NM" && NM=nm
171    test -z "$SED" && SED=sed
172    test -z "$OBJDUMP" && OBJDUMP=objdump
173    test -z "$RANLIB" && RANLIB=:
174    test -z "$STRIP" && STRIP=:
175    test -z "$ac_objext" && ac_objext=o
176    
177  # Transform an extracted symbol line into a proper C declaration  # Determine commands to create old-style static archives.
178  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"  old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
179    old_postinstall_cmds='chmod 644 $oldlib'
180    old_postuninstall_cmds=
181    
182  # Define system-specific variables.  if test -n "$RANLIB"; then
183  case $host_os in    case $host_os in
184  aix*)    openbsd*)
185    [symcode='[BCDT]']      old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
186    ;;      ;;
187  cygwin* | mingw* | pw32*)    *)
188    [symcode='[ABCDGISTW]']      old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
189    ;;      ;;
190  hpux*) # Its linker distinguishes data from code symbols    esac
191    lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192    ;;  fi
 irix*)  
   [symcode='[BCDEGRST]']  
   ;;  
 solaris* | sysv5*)  
   [symcode='[BDT]']  
   ;;  
 sysv4)  
   [symcode='[DFNSTU]']  
   ;;  
 esac  
193    
194  # Handle CRLF in mingw tool chain  # Only perform the check for file, if the check method requires it
195  opt_cr=  case $deplibs_check_method in
196  case $host_os in  file_magic*)
197  mingw*)    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
198    opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp      AC_PATH_MAGIC
199      fi
200    ;;    ;;
201  esac  esac
202    
203  # If we're using GNU nm, then use its standard symbol codes.  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
204  if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
205    [symcode='[ABCDGISTW]']  enable_win32_dll=yes, enable_win32_dll=no)
 fi  
   
 # Try without a prefix undercore, then with it.  
 for ac_symprfx in "" "_"; do  
206    
207    # Write the raw and C identifiers.  AC_ARG_ENABLE([libtool-lock],
208  [lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[        ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"]      [AC_HELP_STRING([--disable-libtool-lock],
209            [avoid locking (might break parallel builds)])])
210    test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
211    
212    # Check to see that the pipe works correctly.  AC_ARG_WITH([pic],
213    pipe_works=no      [AC_HELP_STRING([--with-pic],
214    rm -f conftest*          [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
215    cat > conftest.$ac_ext <<EOF      [pic_mode="$withval"],
216  #ifdef __cplusplus      [pic_mode=default])
217  extern "C" {  test -z "$pic_mode" && pic_mode=default
 #endif  
 char nm_test_var;  
 void nm_test_func(){}  
 #ifdef __cplusplus  
 }  
 #endif  
 int main(){nm_test_var='a';nm_test_func();return(0);}  
 EOF  
218    
219    if AC_TRY_EVAL(ac_compile); then  # Use C for the default configuration in the libtool script
220      # Now try to grab the symbols.  tagname=
221      nlist=conftest.nm  AC_LIBTOOL_LANG_C_CONFIG
222      if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then  _LT_AC_TAGCONFIG
223        # Try sorting and uniquifying the output.  ])# AC_LIBTOOL_SETUP
       if sort "$nlist" | uniq > "$nlist"T; then  
         mv -f "$nlist"T "$nlist"  
       else  
         rm -f "$nlist"T  
       fi  
224    
       # Make sure that we snagged all the symbols we need.  
       if egrep ' nm_test_var$' "$nlist" >/dev/null; then  
         if egrep ' nm_test_func$' "$nlist" >/dev/null; then  
           cat <<EOF > conftest.$ac_ext  
 #ifdef __cplusplus  
 extern "C" {  
 #endif  
225    
226  EOF  # _LT_AC_SYS_COMPILER
227            # Now generate the symbol file.  # -------------------
228            eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'  AC_DEFUN([_LT_AC_SYS_COMPILER],
229    [AC_REQUIRE([AC_PROG_CC])dnl
230    
231            cat <<EOF >> conftest.$ac_ext  # If no C compiler was specified, use CC.
232  #if defined (__STDC__) && __STDC__  LTCC=${LTCC-"$CC"}
 # define lt_ptr_t void *  
 #else  
 # define lt_ptr_t char *  
 # define const  
 #endif  
233    
234  /* The mapping between symbol names and symbols. */  # Allow CC to be a program name with arguments.
235  const struct {  compiler=$CC
236    const char *name;  ])# _LT_AC_SYS_COMPILER
   lt_ptr_t address;  
 }  
 [lt_preloaded_symbols[] =]  
 {  
 EOF  
           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext  
           cat <<\EOF >> conftest.$ac_ext  
   {0, (lt_ptr_t) 0}  
 };  
237    
 #ifdef __cplusplus  
 }  
 #endif  
 EOF  
           # Now try linking the two files.  
           mv conftest.$ac_objext conftstm.$ac_objext  
           save_LIBS="$LIBS"  
           save_CFLAGS="$CFLAGS"  
           LIBS="conftstm.$ac_objext"  
           CFLAGS="$CFLAGS$no_builtin_flag"  
           if AC_TRY_EVAL(ac_link) && test -s conftest; then  
             pipe_works=yes  
           fi  
           LIBS="$save_LIBS"  
           CFLAGS="$save_CFLAGS"  
         else  
           echo "cannot find nm_test_func in $nlist" >&AC_FD_CC  
         fi  
       else  
         echo "cannot find nm_test_var in $nlist" >&AC_FD_CC  
       fi  
     else  
       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC  
     fi  
   else  
     echo "$progname: failed program was:" >&AC_FD_CC  
     cat conftest.$ac_ext >&5  
   fi  
   rm -f conftest* conftst*  
238    
239    # Do not use the global_symbol_pipe unless it works.  # _LT_AC_SYS_LIBPATH_AIX
240    if test "$pipe_works" = yes; then  # ----------------------
241      break  # Links a minimal program and checks the executable
242    else  # for the system default hardcoded library path. In most cases,
243      lt_cv_sys_global_symbol_pipe=  # this is /usr/lib:/lib, but when the MPI compilers are used
244    fi  # the location of the communication and MPI libs are included too.
245  done  # If we don't find anything, use the default library path according
246  ])  # to the aix ld manual.
247  global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
248  if test -z "$lt_cv_sys_global_symbol_pipe"; then  [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
249    global_symbol_to_cdecl=  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
250  else  }'`
251    global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"  # Check for a 64-bit object if we didn't find anything.
252  fi  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
253  if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then  }'`; fi],[])
254    AC_MSG_RESULT(failed)  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
255  else  ])# _LT_AC_SYS_LIBPATH_AIX
256    AC_MSG_RESULT(ok)  
257  fi  
258  ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE  # _LT_AC_SHELL_INIT(ARG)
259    # ----------------------
260    AC_DEFUN([_LT_AC_SHELL_INIT],
261    [ifdef([AC_DIVERSION_NOTICE],
262                 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
263             [AC_DIVERT_PUSH(NOTICE)])
264    $1
265    AC_DIVERT_POP
266    ])# _LT_AC_SHELL_INIT
267    
 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
 # ---------------------------------  
 AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],  
 [# Find the correct PATH separator.  Usually this is `:', but  
 # DJGPP uses `;' like DOS.  
 if test "X${PATH_SEPARATOR+set}" != Xset; then  
   UNAME=${UNAME-`uname 2>/dev/null`}  
   case X$UNAME in  
     *-DOS) lt_cv_sys_path_separator=';' ;;  
     *)     lt_cv_sys_path_separator=':' ;;  
   esac  
 fi  
 ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
268    
269  # _LT_AC_PROG_ECHO_BACKSLASH  # _LT_AC_PROG_ECHO_BACKSLASH
270  # --------------------------  # --------------------------
271  # Add some code to the start of the generated configure script which  # Add some code to the start of the generated configure script which
272  # will find an echo command which doesn;t interpret backslashes.  # will find an echo command which doesn't interpret backslashes.
273  AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],  AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
274  [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],  [_LT_AC_SHELL_INIT([
                               [AC_DIVERT_PUSH(NOTICE)])  
 _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
   
275  # Check that we are running under the correct shell.  # Check that we are running under the correct shell.
276  SHELL=${CONFIG_SHELL-/bin/sh}  SHELL=${CONFIG_SHELL-/bin/sh}
277    
# Line 360  if test "X[$]1" = X--no-reexec; then Line 289  if test "X[$]1" = X--no-reexec; then
289  elif test "X[$]1" = X--fallback-echo; then  elif test "X[$]1" = X--fallback-echo; then
290    # Avoid inline document here, it may be left over    # Avoid inline document here, it may be left over
291    :    :
292  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
293    # Yippee, $echo works!    # Yippee, $echo works!
294    :    :
295  else  else
# Line 372  if test "X[$]1" = X--fallback-echo; then Line 301  if test "X[$]1" = X--fallback-echo; then
301    # used as fallback echo    # used as fallback echo
302    shift    shift
303    cat <<EOF    cat <<EOF
304  $*  [$]*
305  EOF  EOF
306    exit 0    exit 0
307  fi  fi
# Line 406  else Line 335  else
335    #    #
336    # So, first we look for a working echo in the user's PATH.    # So, first we look for a working echo in the user's PATH.
337    
338    IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
339    for dir in $PATH /usr/ucb; do    for dir in $PATH /usr/ucb; do
340        IFS="$lt_save_ifs"
341      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
342         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
343         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
# Line 416  else Line 346  else
346        break        break
347      fi      fi
348    done    done
349    IFS="$save_ifs"    IFS="$lt_save_ifs"
350    
351    if test "X$echo" = Xecho; then    if test "X$echo" = Xecho; then
352      # We didn't find a better echo, so look for alternatives.      # We didn't find a better echo, so look for alternatives.
# Line 489  if test "X$ECHO" = "X$CONFIG_SHELL [$]0 Line 419  if test "X$ECHO" = "X$CONFIG_SHELL [$]0
419  fi  fi
420    
421  AC_SUBST(ECHO)  AC_SUBST(ECHO)
422  AC_DIVERT_POP  ])])# _LT_AC_PROG_ECHO_BACKSLASH
423  ])# _LT_AC_PROG_ECHO_BACKSLASH  
424    
425    # _LT_AC_LOCK
426    # -----------
427    AC_DEFUN([_LT_AC_LOCK],
428    [AC_ARG_ENABLE([libtool-lock],
429        [AC_HELP_STRING([--disable-libtool-lock],
430            [avoid locking (might break parallel builds)])])
431    test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
432    
433    # Some flags need to be propagated to the compiler or linker for good
434    # libtool support.
435    case $host in
436    ia64-*-hpux*)
437      # Find out which ABI we are using.
438      echo 'int i;' > conftest.$ac_ext
439      if AC_TRY_EVAL(ac_compile); then
440        case `/usr/bin/file conftest.$ac_objext` in
441        *ELF-32*)
442          HPUX_IA64_MODE="32"
443          ;;
444        *ELF-64*)
445          HPUX_IA64_MODE="64"
446          ;;
447        esac
448      fi
449      rm -rf conftest*
450      ;;
451    *-*-irix6*)
452      # Find out which ABI we are using.
453      echo '[#]line __oline__ "configure"' > conftest.$ac_ext
454      if AC_TRY_EVAL(ac_compile); then
455       if test "$lt_cv_prog_gnu_ld" = yes; then
456        case `/usr/bin/file conftest.$ac_objext` in
457        *32-bit*)
458          LD="${LD-ld} -melf32bsmip"
459          ;;
460        *N32*)
461          LD="${LD-ld} -melf32bmipn32"
462          ;;
463        *64-bit*)
464          LD="${LD-ld} -melf64bmip"
465          ;;
466        esac
467       else
468        case `/usr/bin/file conftest.$ac_objext` in
469        *32-bit*)
470          LD="${LD-ld} -32"
471          ;;
472        *N32*)
473          LD="${LD-ld} -n32"
474          ;;
475        *64-bit*)
476          LD="${LD-ld} -64"
477          ;;
478        esac
479       fi
480      fi
481      rm -rf conftest*
482      ;;
483    
484    x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
485      # Find out which ABI we are using.
486      echo 'int i;' > conftest.$ac_ext
487      if AC_TRY_EVAL(ac_compile); then
488        case "`/usr/bin/file conftest.o`" in
489        *32-bit*)
490          case $host in
491            x86_64-*linux*)
492              LD="${LD-ld} -m elf_i386"
493              ;;
494            ppc64-*linux*)
495              LD="${LD-ld} -m elf32ppclinux"
496              ;;
497            s390x-*linux*)
498              LD="${LD-ld} -m elf_s390"
499              ;;
500            sparc64-*linux*)
501              LD="${LD-ld} -m elf32_sparc"
502              ;;
503          esac
504          ;;
505        *64-bit*)
506          case $host in
507            x86_64-*linux*)
508              LD="${LD-ld} -m elf_x86_64"
509              ;;
510            ppc*-*linux*|powerpc*-*linux*)
511              LD="${LD-ld} -m elf64ppc"
512              ;;
513            s390*-*linux*)
514              LD="${LD-ld} -m elf64_s390"
515              ;;
516            sparc*-*linux*)
517              LD="${LD-ld} -m elf64_sparc"
518              ;;
519          esac
520          ;;
521        esac
522      fi
523      rm -rf conftest*
524      ;;
525    
526    *-*-sco3.2v5*)
527      # On SCO OpenServer 5, we need -belf to get full-featured binaries.
528      SAVE_CFLAGS="$CFLAGS"
529      CFLAGS="$CFLAGS -belf"
530      AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
531        [AC_LANG_PUSH(C)
532         AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
533         AC_LANG_POP])
534      if test x"$lt_cv_cc_needs_belf" != x"yes"; then
535        # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
536        CFLAGS="$SAVE_CFLAGS"
537      fi
538      ;;
539    AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
540    [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
541      AC_CHECK_TOOL(DLLTOOL, dlltool, false)
542      AC_CHECK_TOOL(AS, as, false)
543      AC_CHECK_TOOL(OBJDUMP, objdump, false)
544      ;;
545      ])
546    esac
547    
548    need_locks="$enable_libtool_lock"
549    
550    ])# _LT_AC_LOCK
551    
552    
553    # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
554    #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
555    # ----------------------------------------------------------------
556    # Check whether the given compiler option works
557    AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
558    [AC_CACHE_CHECK([$1], [$2],
559      [$2=no
560      ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
561       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
562       lt_compiler_flag="$3"
563       # Insert the option either (1) after the last *FLAGS variable, or
564       # (2) before a word containing "conftest.", or (3) at the end.
565       # Note that $ac_compile itself does not contain backslashes and begins
566       # with a dollar sign (not a hyphen), so the echo should work correctly.
567       # The option is referenced via a variable to avoid confusing sed.
568       lt_compile=`echo "$ac_compile" | $SED \
569       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
570       -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
571       -e 's:$: $lt_compiler_flag:'`
572       (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
573       (eval "$lt_compile" 2>conftest.err)
574       ac_status=$?
575       cat conftest.err >&AS_MESSAGE_LOG_FD
576       echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
577       if (exit $ac_status) && test -s "$ac_outfile"; then
578         # The compiler can only warn and ignore the option if not recognized
579         # So say no if there are warnings
580         if test ! -s conftest.err; then
581           $2=yes
582         fi
583       fi
584       $rm conftest*
585    ])
586    
587    if test x"[$]$2" = xyes; then
588        ifelse([$5], , :, [$5])
589    else
590        ifelse([$6], , :, [$6])
591    fi
592    ])# AC_LIBTOOL_COMPILER_OPTION
593    
594    
595    # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
596    #                          [ACTION-SUCCESS], [ACTION-FAILURE])
597    # ------------------------------------------------------------
598    # Check whether the given compiler option works
599    AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
600    [AC_CACHE_CHECK([$1], [$2],
601      [$2=no
602       save_LDFLAGS="$LDFLAGS"
603       LDFLAGS="$LDFLAGS $3"
604       printf "$lt_simple_link_test_code" > conftest.$ac_ext
605       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
606         # The compiler can only warn and ignore the option if not recognized
607         # So say no if there are warnings
608         if test -s conftest.err; then
609           # Append any errors to the config.log.
610           cat conftest.err 1>&AS_MESSAGE_LOG_FD
611         else
612           $2=yes
613         fi
614       fi
615       $rm conftest*
616       LDFLAGS="$save_LDFLAGS"
617    ])
618    
619    if test x"[$]$2" = xyes; then
620        ifelse([$4], , :, [$4])
621    else
622        ifelse([$5], , :, [$5])
623    fi
624    ])# AC_LIBTOOL_LINKER_OPTION
625    
626    
627    # AC_LIBTOOL_SYS_MAX_CMD_LEN
628    # --------------------------
629    AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
630    [# find the maximum length of command line arguments
631    AC_MSG_CHECKING([the maximum length of command line arguments])
632    AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
633      i=0
634      testring="ABCD"
635    
636      case $build_os in
637      msdosdjgpp*)
638        # On DJGPP, this test can blow up pretty badly due to problems in libc
639        # (any single argument exceeding 2000 bytes causes a buffer overrun
640        # during glob expansion).  Even if it were fixed, the result of this
641        # check would be larger than it should be.
642        lt_cv_sys_max_cmd_len=12288;    # 12K is about right
643        ;;
644    
645      gnu*)
646        # Under GNU Hurd, this test is not required because there is
647        # no limit to the length of command line arguments.
648        # Libtool will interpret -1 as no limit whatsoever
649        lt_cv_sys_max_cmd_len=-1;
650        ;;
651    
652      cygwin* | mingw*)
653        # On Win9x/ME, this test blows up -- it succeeds, but takes
654        # about 5 minutes as the teststring grows exponentially.
655        # Worse, since 9x/ME are not pre-emptively multitasking,
656        # you end up with a "frozen" computer, even though with patience
657        # the test eventually succeeds (with a max line length of 256k).
658        # Instead, let's just punt: use the minimum linelength reported by
659        # all of the supported platforms: 8192 (on NT/2K/XP).
660        lt_cv_sys_max_cmd_len=8192;
661        ;;
662    
663     *)
664        # If test is not a shell built-in, we'll probably end up computing a
665        # maximum length that is only half of the actual maximum length, but
666        # we can't tell.
667        while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
668                   = "XX$testring") >/dev/null 2>&1 &&
669                new_result=`expr "X$testring" : ".*" 2>&1` &&
670                lt_cv_sys_max_cmd_len=$new_result &&
671                test $i != 17 # 1/2 MB should be enough
672        do
673          i=`expr $i + 1`
674          testring=$testring$testring
675        done
676        testring=
677        # Add a significant safety factor because C++ compilers can tack on massive
678        # amounts of additional arguments before passing them to the linker.
679        # It appears as though 1/2 is a usable value.
680        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
681        ;;
682      esac
683    ])
684    if test -n $lt_cv_sys_max_cmd_len ; then
685      AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
686    else
687      AC_MSG_RESULT(none)
688    fi
689    ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
690    
691    
692    # _LT_AC_CHECK_DLFCN
693    # --------------------
694    AC_DEFUN([_LT_AC_CHECK_DLFCN],
695    [AC_CHECK_HEADERS(dlfcn.h)dnl
696    ])# _LT_AC_CHECK_DLFCN
697    
698    
699  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
700  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
701  # ------------------------------------------------------------------  # ------------------------------------------------------------------
702  AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF,  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
703  [if test "$cross_compiling" = yes; then :  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
704    if test "$cross_compiling" = yes; then :
705    [$4]    [$4]
706  else  else
   AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  
707    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
708    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
709    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
# Line 580  fi Line 784  fi
784  rm -fr conftest*  rm -fr conftest*
785  ])# _LT_AC_TRY_DLOPEN_SELF  ])# _LT_AC_TRY_DLOPEN_SELF
786    
787    
788  # AC_LIBTOOL_DLOPEN_SELF  # AC_LIBTOOL_DLOPEN_SELF
789  # -------------------  # -------------------
790  AC_DEFUN(AC_LIBTOOL_DLOPEN_SELF,  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
791  [if test "x$enable_dlopen" != xyes; then  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
792    if test "x$enable_dlopen" != xyes; then
793    enable_dlopen=unknown    enable_dlopen=unknown
794    enable_dlopen_self=unknown    enable_dlopen_self=unknown
795    enable_dlopen_self_static=unknown    enable_dlopen_self_static=unknown
# Line 598  else Line 804  else
804      lt_cv_dlopen_self=yes      lt_cv_dlopen_self=yes
805      ;;      ;;
806    
807    cygwin* | mingw* | pw32*)    mingw* | pw32*)
808      lt_cv_dlopen="LoadLibrary"      lt_cv_dlopen="LoadLibrary"
809      lt_cv_dlopen_libs=      lt_cv_dlopen_libs=
810     ;;     ;;
811    
812      cygwin*)
813        lt_cv_dlopen="dlopen"
814        lt_cv_dlopen_libs=
815       ;;
816    
817      darwin*)
818      # if libdl is installed we need to link against it
819        AC_CHECK_LIB([dl], [dlopen],
820                    [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
821        lt_cv_dlopen="dyld"
822        lt_cv_dlopen_libs=
823        lt_cv_dlopen_self=yes
824        ])
825       ;;
826        
827    *)    *)
828      AC_CHECK_LIB(dl, dlopen,  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],      AC_CHECK_FUNC([shl_load],
829        [AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen",            [lt_cv_dlopen="shl_load"],
830          [AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load",        [AC_CHECK_LIB([dld], [shl_load],
831            [AC_CHECK_LIB(svld, dlopen,              [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
832              [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],          [AC_CHECK_FUNC([dlopen],
833              [AC_CHECK_LIB(dld, shl_load,                [lt_cv_dlopen="dlopen"],
834                [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])            [AC_CHECK_LIB([dl], [dlopen],
835                    [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
836                [AC_CHECK_LIB([svld], [dlopen],
837                      [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
838                  [AC_CHECK_LIB([dld], [dld_link],
839                        [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
840                  ])
841              ])              ])
842            ])            ])
843          ])          ])
844        ])        ])
845      ;;      ;;
846    esac    esac
# Line 627  else Line 854  else
854    case $lt_cv_dlopen in    case $lt_cv_dlopen in
855    dlopen)    dlopen)
856      save_CPPFLAGS="$CPPFLAGS"      save_CPPFLAGS="$CPPFLAGS"
     AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  
857      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
858    
859      save_LDFLAGS="$LDFLAGS"      save_LDFLAGS="$LDFLAGS"
# Line 671  else Line 897  else
897  fi  fi
898  ])# AC_LIBTOOL_DLOPEN_SELF  ])# AC_LIBTOOL_DLOPEN_SELF
899    
 AC_DEFUN([_LT_AC_LTCONFIG_HACK],  
 [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl  
 # Sed substitution that helps us do robust quoting.  It backslashifies  
 # metacharacters that are still active within double-quoted strings.  
 Xsed='sed -e s/^X//'  
 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']  
   
 # Same as above, but do not quote variable references.  
 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']  
   
 # Sed substitution to delay expansion of an escaped shell variable in a  
 # double_quote_subst'ed string.  
 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'  
   
 # Constants:  
 rm="rm -f"  
   
 # Global variables:  
 default_ofile=libtool  
 can_build_shared=yes  
   
 # All known linkers require a `.a' archive for static linking (except M$VC,  
 # which needs '.lib').  
 libext=a  
 ltmain="$ac_aux_dir/ltmain.sh"  
 ofile="$default_ofile"  
 with_gnu_ld="$lt_cv_prog_gnu_ld"  
 need_locks="$enable_libtool_lock"  
   
 old_CC="$CC"  
 old_CFLAGS="$CFLAGS"  
   
 # Set sane defaults for various variables  
 test -z "$AR" && AR=ar  
 test -z "$AR_FLAGS" && AR_FLAGS=cru  
 test -z "$AS" && AS=as  
 test -z "$CC" && CC=cc  
 test -z "$DLLTOOL" && DLLTOOL=dlltool  
 test -z "$LD" && LD=ld  
 test -z "$LN_S" && LN_S="ln -s"  
 test -z "$MAGIC_CMD" && MAGIC_CMD=file  
 test -z "$NM" && NM=nm  
 test -z "$OBJDUMP" && OBJDUMP=objdump  
 test -z "$RANLIB" && RANLIB=:  
 test -z "$STRIP" && STRIP=:  
 test -z "$ac_objext" && ac_objext=o  
   
 if test x"$host" != x"$build"; then  
   ac_tool_prefix=${host_alias}-  
 else  
   ac_tool_prefix=  
 fi  
   
 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.  
 case $host_os in  
 linux-gnu*) ;;  
 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`  
 esac  
   
 case $host_os in  
 aix3*)  
   # AIX sometimes has problems with the GCC collect2 program.  For some  
   # reason, if we set the COLLECT_NAMES environment variable, the problems  
   # vanish in a puff of smoke.  
   if test "X${COLLECT_NAMES+set}" != Xset; then  
     COLLECT_NAMES=  
     export COLLECT_NAMES  
   fi  
   ;;  
 esac  
   
 # Determine commands to create old-style static archives.  
 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'  
 old_postinstall_cmds='chmod 644 $oldlib'  
 old_postuninstall_cmds=  
   
 if test -n "$RANLIB"; then  
   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"  
   old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"  
 fi  
   
 # Allow CC to be a program name with arguments.  
 set dummy $CC  
 compiler="[$]2"  
   
 AC_MSG_CHECKING([for objdir])  
 rm -f .libs 2>/dev/null  
 mkdir .libs 2>/dev/null  
 if test -d .libs; then  
   objdir=.libs  
 else  
   # MS-DOS does not allow filenames that begin with a dot.  
   objdir=_libs  
 fi  
 rmdir .libs 2>/dev/null  
 AC_MSG_RESULT($objdir)  
   
   
 AC_ARG_WITH(pic,  
 [  --with-pic              try to use only PIC/non-PIC objects [default=use both]],  
 pic_mode="$withval", pic_mode=default)  
 test -z "$pic_mode" && pic_mode=default  
   
 # We assume here that the value for lt_cv_prog_cc_pic will not be cached  
 # in isolation, and that seeing it set (from the cache) indicates that  
 # the associated values are set (in the cache) correctly too.  
 AC_MSG_CHECKING([for $compiler option to produce PIC])  
 AC_CACHE_VAL(lt_cv_prog_cc_pic,  
 [ lt_cv_prog_cc_pic=  
   lt_cv_prog_cc_shlib=  
   lt_cv_prog_cc_wl=  
   lt_cv_prog_cc_static=  
   lt_cv_prog_cc_no_builtin=  
   lt_cv_prog_cc_can_build_shared=$can_build_shared  
   
   if test "$GCC" = yes; then  
     lt_cv_prog_cc_wl='-Wl,'  
     lt_cv_prog_cc_static='-static'  
   
     case $host_os in  
     aix*)  
       # Below there is a dirty hack to force normal static linking with -ldl  
       # The problem is because libdl dynamically linked with both libc and  
       # libC (AIX C++ library), which obviously doesn't included in libraries  
       # list by gcc. This cause undefined symbols with -static flags.  
       # This hack allows C programs to be linked with "-static -ldl", but  
       # we not sure about C++ programs.  
       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"  
       ;;  
     amigaos*)  
       # FIXME: we need at least 68020 code to build shared libraries, but  
       # adding the `-m68020' flag to GCC prevents building anything better,  
       # like `-m68040'.  
       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'  
       ;;  
     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)  
       # PIC is the default for these OSes.  
       ;;  
     darwin* | rhapsody*)  
       # PIC is the default on this platform  
       # Common symbols not allowed in MH_DYLIB files  
       lt_cv_prog_cc_pic='-fno-common'  
       ;;  
     cygwin* | mingw* | pw32* | os2*)  
       # This hack is so that the source file can tell whether it is being  
       # built for inclusion in a dll (and should export symbols for example).  
       lt_cv_prog_cc_pic='-DDLL_EXPORT'  
       ;;  
     sysv4*MP*)  
       if test -d /usr/nec; then  
          lt_cv_prog_cc_pic=-Kconform_pic  
       fi  
       ;;  
     *)  
       lt_cv_prog_cc_pic='-fPIC'  
       ;;  
     esac  
   else  
     # PORTME Check for PIC flags for the system compiler.  
     case $host_os in  
     aix3* | aix4* | aix5*)  
       # All AIX code is PIC.  
       if test "$host_cpu" = ia64; then  
         # AIX 5 now supports IA64 processor  
         lt_cv_prog_cc_static='-Bstatic'  
         lt_cv_prog_cc_wl='-Wl,'  
       else  
         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'  
       fi  
       ;;  
   
     hpux9* | hpux10* | hpux11*)  
       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?  
       lt_cv_prog_cc_wl='-Wl,'  
       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"  
       lt_cv_prog_cc_pic='+Z'  
       ;;  
   
     irix5* | irix6*)  
       lt_cv_prog_cc_wl='-Wl,'  
       lt_cv_prog_cc_static='-non_shared'  
       # PIC (with -KPIC) is the default.  
       ;;  
   
     cygwin* | mingw* | pw32* | os2*)  
       # This hack is so that the source file can tell whether it is being  
       # built for inclusion in a dll (and should export symbols for example).  
       lt_cv_prog_cc_pic='-DDLL_EXPORT'  
       ;;  
   
     newsos6)  
       lt_cv_prog_cc_pic='-KPIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       ;;  
   
     osf3* | osf4* | osf5*)  
       # All OSF/1 code is PIC.  
       lt_cv_prog_cc_wl='-Wl,'  
       lt_cv_prog_cc_static='-non_shared'  
       ;;  
   
     sco3.2v5*)  
       lt_cv_prog_cc_pic='-Kpic'  
       lt_cv_prog_cc_static='-dn'  
       lt_cv_prog_cc_shlib='-belf'  
       ;;  
   
     solaris*)  
       lt_cv_prog_cc_pic='-KPIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       lt_cv_prog_cc_wl='-Wl,'  
       ;;  
   
     sunos4*)  
       lt_cv_prog_cc_pic='-PIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       lt_cv_prog_cc_wl='-Qoption ld '  
       ;;  
   
     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  
       lt_cv_prog_cc_pic='-KPIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       if test "x$host_vendor" = xsni; then  
         lt_cv_prog_cc_wl='-LD'  
       else  
         lt_cv_prog_cc_wl='-Wl,'  
       fi  
       ;;  
   
     uts4*)  
       lt_cv_prog_cc_pic='-pic'  
       lt_cv_prog_cc_static='-Bstatic'  
       ;;  
   
     sysv4*MP*)  
       if test -d /usr/nec ;then  
         lt_cv_prog_cc_pic='-Kconform_pic'  
         lt_cv_prog_cc_static='-Bstatic'  
       fi  
       ;;  
   
     *)  
       lt_cv_prog_cc_can_build_shared=no  
       ;;  
     esac  
   fi  
 ])  
 if test -z "$lt_cv_prog_cc_pic"; then  
   AC_MSG_RESULT([none])  
 else  
   AC_MSG_RESULT([$lt_cv_prog_cc_pic])  
   
   # Check to make sure the pic_flag actually works.  
   AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])  
   AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl  
     save_CFLAGS="$CFLAGS"  
     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"  
     AC_TRY_COMPILE([], [], [dnl  
       case $host_os in  
       hpux9* | hpux10* | hpux11*)  
         # On HP-UX, both CC and GCC only warn that PIC is supported... then  
         # they create non-PIC objects.  So, if there were any warnings, we  
         # assume that PIC is not supported.  
         if test -s conftest.err; then  
           lt_cv_prog_cc_pic_works=no  
         else  
           lt_cv_prog_cc_pic_works=yes  
         fi  
         ;;  
       *)  
         lt_cv_prog_cc_pic_works=yes  
         ;;  
       esac  
     ], [dnl  
       lt_cv_prog_cc_pic_works=no  
     ])  
     CFLAGS="$save_CFLAGS"  
   ])  
   
   if test "X$lt_cv_prog_cc_pic_works" = Xno; then  
     lt_cv_prog_cc_pic=  
     lt_cv_prog_cc_can_build_shared=no  
   else  
     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"  
   fi  
   
   AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])  
 fi  
   
 # Check for any special shared library compilation flags.  
 if test -n "$lt_cv_prog_cc_shlib"; then  
   AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])  
   if echo "$old_CC $old_CFLAGS " | [egrep -e "[         ]$lt_cv_prog_cc_shlib[  ]"] >/dev/null; then :  
   else  
    AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])  
     lt_cv_prog_cc_can_build_shared=no  
   fi  
 fi  
900    
901  AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])  # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
902  AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl  # ---------------------------------
903    lt_cv_prog_cc_static_works=no  # Check to see if options -c and -o are simultaneously supported by compiler
904    save_LDFLAGS="$LDFLAGS"  AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
905    LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"  [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
906    AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
907    LDFLAGS="$save_LDFLAGS"    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
908      [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
909       $rm -r conftest 2>/dev/null
910       mkdir conftest
911       cd conftest
912       mkdir out
913       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
914    
915       # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
916       # that will create temporary files in the current directory regardless of
917       # the output directory.  Thus, making CWD read-only will cause this test
918       # to fail, enabling locking or at least warning the user not to do parallel
919       # builds.
920       chmod -w .
921    
922       lt_compiler_flag="-o out/conftest2.$ac_objext"
923       # Insert the option either (1) after the last *FLAGS variable, or
924       # (2) before a word containing "conftest.", or (3) at the end.
925       # Note that $ac_compile itself does not contain backslashes and begins
926       # with a dollar sign (not a hyphen), so the echo should work correctly.
927       lt_compile=`echo "$ac_compile" | $SED \
928       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
929       -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
930       -e 's:$: $lt_compiler_flag:'`
931       (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
932       (eval "$lt_compile" 2>out/conftest.err)
933       ac_status=$?
934       cat out/conftest.err >&AS_MESSAGE_LOG_FD
935       echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
936       if (exit $ac_status) && test -s out/conftest2.$ac_objext
937       then
938         # The compiler can only warn and ignore the option if not recognized
939         # So say no if there are warnings
940         if test ! -s out/conftest.err; then
941           _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
942         fi
943       fi
944       chmod u+w .
945       $rm conftest* out/*
946       rmdir out
947       cd ..
948       rmdir conftest
949       $rm conftest*
950  ])  ])
951    ])# AC_LIBTOOL_PROG_CC_C_O
952    
 # Belt *and* braces to stop my trousers falling down:  
 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=  
 AC_MSG_RESULT([$lt_cv_prog_cc_static_works])  
   
 pic_flag="$lt_cv_prog_cc_pic"  
 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"  
 wl="$lt_cv_prog_cc_wl"  
 link_static_flag="$lt_cv_prog_cc_static"  
 no_builtin_flag="$lt_cv_prog_cc_no_builtin"  
 can_build_shared="$lt_cv_prog_cc_can_build_shared"  
   
   
 # Check to see if options -o and -c are simultaneously supported by compiler  
 AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])  
 AC_CACHE_VAL([lt_cv_compiler_c_o], [  
 $rm -r conftest 2>/dev/null  
 mkdir conftest  
 cd conftest  
 echo "int some_variable = 0;" > conftest.$ac_ext  
 mkdir out  
 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers  
 # that will create temporary files in the current directory regardless of  
 # the output directory.  Thus, making CWD read-only will cause this test  
 # to fail, enabling locking or at least warning the user not to do parallel  
 # builds.  
 chmod -w .  
 save_CFLAGS="$CFLAGS"  
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"  
 compiler_c_o=no  
 if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then  
   # The compiler can only warn and ignore the option if not recognized  
   # So say no if there are warnings  
   if test -s out/conftest.err; then  
     lt_cv_compiler_c_o=no  
   else  
     lt_cv_compiler_c_o=yes  
   fi  
 else  
   # Append any errors to the config.log.  
   cat out/conftest.err 1>&AC_FD_CC  
   lt_cv_compiler_c_o=no  
 fi  
 CFLAGS="$save_CFLAGS"  
 chmod u+w .  
 $rm conftest* out/*  
 rmdir out  
 cd ..  
 rmdir conftest  
 $rm -r conftest 2>/dev/null  
 ])  
 compiler_c_o=$lt_cv_compiler_c_o  
 AC_MSG_RESULT([$compiler_c_o])  
   
 if test x"$compiler_c_o" = x"yes"; then  
   # Check to see if we can write to a .lo  
   AC_MSG_CHECKING([if $compiler supports -c -o file.lo])  
   AC_CACHE_VAL([lt_cv_compiler_o_lo], [  
   lt_cv_compiler_o_lo=no  
   save_CFLAGS="$CFLAGS"  
   CFLAGS="$CFLAGS -c -o conftest.lo"  
   AC_TRY_COMPILE([], [int some_variable = 0;], [dnl  
     # The compiler can only warn and ignore the option if not recognized  
     # So say no if there are warnings  
     if test -s conftest.err; then  
       lt_cv_compiler_o_lo=no  
     else  
       lt_cv_compiler_o_lo=yes  
     fi  
   ])  
   CFLAGS="$save_CFLAGS"  
   ])  
   compiler_o_lo=$lt_cv_compiler_o_lo  
   AC_MSG_RESULT([$compiler_c_lo])  
 else  
   compiler_o_lo=no  
 fi  
953    
954    # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
955    # -----------------------------------------
956  # Check to see if we can do hard links to lock some files if needed  # Check to see if we can do hard links to lock some files if needed
957    AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
958    [AC_REQUIRE([_LT_AC_LOCK])dnl
959    
960  hard_links="nottested"  hard_links="nottested"
961  if test "$compiler_c_o" = no && test "$need_locks" != no; then  if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
962    # do not overwrite the value of need_locks provided by the user    # do not overwrite the value of need_locks provided by the user
963    AC_MSG_CHECKING([if we can lock with hard links])    AC_MSG_CHECKING([if we can lock with hard links])
964    hard_links=yes    hard_links=yes
# Line 1069  if test "$compiler_c_o" = no && test "$n Line 969  if test "$compiler_c_o" = no && test "$n
969    ln conftest.a conftest.b 2>/dev/null && hard_links=no    ln conftest.a conftest.b 2>/dev/null && hard_links=no
970    AC_MSG_RESULT([$hard_links])    AC_MSG_RESULT([$hard_links])
971    if test "$hard_links" = no; then    if test "$hard_links" = no; then
972      AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])      AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
973      need_locks=warn      need_locks=warn
974    fi    fi
975  else  else
976    need_locks=no    need_locks=no
977  fi  fi
978    ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
979    
 if test "$GCC" = yes; then  
   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler  
   AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])  
   echo "int some_variable = 0;" > conftest.$ac_ext  
   save_CFLAGS="$CFLAGS"  
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"  
   compiler_rtti_exceptions=no  
   AC_TRY_COMPILE([], [int some_variable = 0;], [dnl  
     # The compiler can only warn and ignore the option if not recognized  
     # So say no if there are warnings  
     if test -s conftest.err; then  
       compiler_rtti_exceptions=no  
     else  
       compiler_rtti_exceptions=yes  
     fi  
   ])  
   CFLAGS="$save_CFLAGS"  
   AC_MSG_RESULT([$compiler_rtti_exceptions])  
980    
981    if test "$compiler_rtti_exceptions" = "yes"; then  # AC_LIBTOOL_OBJDIR
982      no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'  # -----------------
983    else  AC_DEFUN([AC_LIBTOOL_OBJDIR],
984      no_builtin_flag=' -fno-builtin'  [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
985    fi  [rm -f .libs 2>/dev/null
986  fi  mkdir .libs 2>/dev/null
987    if test -d .libs; then
988  # See if the linker supports building shared libraries.    lt_cv_objdir=.libs
 AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])  
   
 allow_undefined_flag=  
 no_undefined_flag=  
 need_lib_prefix=unknown  
 need_version=unknown  
 # when you set need_version to no, make sure it does not cause -set_version  
 # flags to be left without arguments  
 archive_cmds=  
 archive_expsym_cmds=  
 old_archive_from_new_cmds=  
 old_archive_from_expsyms_cmds=  
 export_dynamic_flag_spec=  
 whole_archive_flag_spec=  
 thread_safe_flag_spec=  
 hardcode_into_libs=no  
 hardcode_libdir_flag_spec=  
 hardcode_libdir_separator=  
 hardcode_direct=no  
 hardcode_minus_L=no  
 hardcode_shlibpath_var=unsupported  
 runpath_var=  
 link_all_deplibs=unknown  
 always_export_symbols=no  
 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'  
 # include_expsyms should be a list of space-separated symbols to be *always*  
 # included in the symbol list  
 include_expsyms=  
 # exclude_expsyms can be an egrep regular expression of symbols to exclude  
 # it will be wrapped by ` (' and `)$', so one must not match beginning or  
 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',  
 # as well as any symbol that contains `d'.  
 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"  
 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out  
 # platforms (ab)use it in PIC code, but their linkers get confused if  
 # the symbol is explicitly referenced.  Since portable code cannot  
 # rely on this symbol name, it's probably fine to never include it in  
 # preloaded symbol tables.  
 extract_expsyms_cmds=  
   
 case $host_os in  
 cygwin* | mingw* | pw32* )  
   # FIXME: the MSVC++ port hasn't been tested in a loooong time  
   # When not using gcc, we currently assume that we are using  
   # Microsoft Visual C++.  
   if test "$GCC" != yes; then  
     with_gnu_ld=no  
   fi  
   ;;  
   
 esac  
   
 ld_shlibs=yes  
 if test "$with_gnu_ld" = yes; then  
   # If archive_cmds runs LD, not CC, wlarc should be empty  
   wlarc='${wl}'  
   
   # See if GNU ld supports shared libraries.  
   case $host_os in  
   aix3* | aix4* | aix5*)  
     # On AIX, the GNU linker is very broken  
     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.  
     ld_shlibs=no  
     cat <<EOF 1>&2  
   
 *** Warning: the GNU linker, at least up to release 2.9.1, is reported  
 *** to be unable to reliably create shared libraries on AIX.  
 *** Therefore, libtool is disabling shared libraries support.  If you  
 *** really care for shared libraries, you may want to modify your PATH  
 *** so that a non-GNU linker is found, and then restart.  
   
 EOF  
     ;;  
   
   amigaos*)  
     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_minus_L=yes  
   
     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports  
     # that the semantics of dynamic libraries on AmigaOS, at least up  
     # to version 4, is to share data among multiple programs linked  
     # with the same dynamic library.  Since this doesn't match the  
     # behavior of shared libraries on other platforms, we can use  
     # them.  
     ld_shlibs=no  
     ;;  
   
   beos*)  
     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then  
       allow_undefined_flag=unsupported  
       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc  
       # support --undefined.  This deserves some investigation.  FIXME  
       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
     else  
       ld_shlibs=no  
     fi  
     ;;  
   
   cygwin* | mingw* | pw32*)  
     # hardcode_libdir_flag_spec is actually meaningless, as there is  
     # no search path for DLLs.  
     hardcode_libdir_flag_spec='-L$libdir'  
     allow_undefined_flag=unsupported  
     always_export_symbols=yes  
   
     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \  
       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~  
       test -f $output_objdir/impgen.exe || (cd $output_objdir && \  
       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \  
       else $CC -o impgen impgen.c ; fi)~  
       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'  
   
     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'  
   
     # cygwin and mingw dlls have different entry points and sets of symbols  
     # to exclude.  
     # FIXME: what about values for MSVC?  
     dll_entry=__cygwin_dll_entry@12  
     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~  
     case $host_os in  
     mingw*)  
       # mingw values  
       dll_entry=_DllMainCRTStartup@12  
       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~  
       ;;  
     esac  
   
     # mingw and cygwin differ, and it's simplest to just exclude the union  
     # of the two symbol sets.  
     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12  
   
     # recent cygwin and mingw systems supply a stub DllMain which the user  
     # can override, but on older systems we have to supply one (in ltdll.c)  
     if test "x$lt_cv_need_dllmain" = "xyes"; then  
       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "  
       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~  
         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'  
     else  
       ltdll_obj=  
       ltdll_cmds=  
     fi  
   
     # Extract the symbol export list from an `--export-all' def file,  
     # then regenerate the def file from the symbol export list, so that  
     # the compiled dll only exports the symbol export list.  
     # Be careful not to strip the DATA tag left be newer dlltools.  
     export_symbols_cmds="$ltdll_cmds"'  
       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~  
       [sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols'  
   
     # If the export-symbols file already is a .def file (1st line  
     # is EXPORTS), use it as is.  
     # If DATA tags from a recent dlltool are present, honour them!  
     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then  
         cp $export_symbols $output_objdir/$soname-def;  
       else  
         echo EXPORTS > $output_objdir/$soname-def;  
         _lt_hint=1;  
         cat $export_symbols | while read symbol; do  
          set dummy \$symbol;  
          case \[$]# in  
            2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;  
            *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;  
          esac;  
          _lt_hint=`expr 1 + \$_lt_hint`;  
         done;  
       fi~  
       '"$ltdll_cmds"'  
       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~  
       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~  
       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~  
       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~  
       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'  
     ;;  
   
   netbsd*)  
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then  
       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'  
       wlarc=  
     else  
       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
     fi  
     ;;  
   
   solaris* | sysv5*)  
     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then  
       ld_shlibs=no  
       cat <<EOF 1>&2  
   
 *** Warning: The releases 2.8.* of the GNU linker cannot reliably  
 *** create shared libraries on Solaris systems.  Therefore, libtool  
 *** is disabling shared libraries support.  We urge you to upgrade GNU  
 *** binutils to release 2.9.1 or newer.  Another option is to modify  
 *** your PATH or compiler configuration so that the native linker is  
 *** used, and then restart.  
   
 EOF  
     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then  
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
     else  
       ld_shlibs=no  
     fi  
     ;;  
   
   sunos4*)  
     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
     wlarc=  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   *)  
     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then  
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
     else  
       ld_shlibs=no  
     fi  
     ;;  
   esac  
   
   if test "$ld_shlibs" = yes; then  
     runpath_var=LD_RUN_PATH  
     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'  
     export_dynamic_flag_spec='${wl}--export-dynamic'  
     case $host_os in  
     cygwin* | mingw* | pw32*)  
       # dlltool doesn't understand --whole-archive et. al.  
       whole_archive_flag_spec=  
       ;;  
     *)  
       # ancient GNU ld didn't support --whole-archive et. al.  
       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then  
         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'  
       else  
         whole_archive_flag_spec=  
       fi  
       ;;  
     esac  
   fi  
989  else  else
990    # PORTME fill in a description of your system's linker (not GNU ld)    # MS-DOS does not allow filenames that begin with a dot.
991    case $host_os in    lt_cv_objdir=_libs
   aix3*)  
     allow_undefined_flag=unsupported  
     always_export_symbols=yes  
     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'  
     # Note: this linker hardcodes the directories in LIBPATH if there  
     # are no directories specified by -L.  
     hardcode_minus_L=yes  
     if test "$GCC" = yes && test -z "$link_static_flag"; then  
       # Neither direct hardcoding nor static linking is supported with a  
       # broken collect2.  
       hardcode_direct=unsupported  
     fi  
     ;;  
   
   aix4* | aix5*)  
     # When large executables or shared objects are built, AIX ld can  
     # have problems creating the table of contents.  If linking a library  
     # or program results in "error TOC overflow" add -mminimal-toc to  
     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not  
     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.  
   
     archive_cmds=''  
     hardcode_libdir_separator=':'  
     if test "$GCC" = yes; then  
       collect2name=`${CC} -print-prog-name=collect2`  
       if test -f "$collect2name" && \  
          strings "$collect2name" | grep resolve_lib_name >/dev/null  
       then  
         # We have reworked collect2  
         hardcode_direct=yes  
       else  
         # We have old collect2  
         hardcode_direct=unsupported  
         # It fails to find uninstalled libraries when the uninstalled  
         # path is not listed in the libpath.  Setting hardcode_minus_L  
         # to unsupported forces relinking  
         hardcode_minus_L=yes  
         hardcode_libdir_flag_spec='-L$libdir'  
         hardcode_libdir_separator=  
       fi  
       shared_flag='-shared'  
     else  
       if test "$host_cpu" = ia64; then  
         shared_flag='-G'  
       else  
         shared_flag='${wl}-bM:SRE'  
       fi  
       hardcode_direct=yes  
     fi  
   
     if test "$host_cpu" = ia64; then  
       # On IA64, the linker does run time linking by default, so we don't  
       # have to do anything special.  
       aix_use_runtimelinking=no  
       exp_sym_flag='-Bexport'  
       no_entry_flag=""  
     else  
       # Test if we are trying to use run time linking, or normal AIX style linking.  
       # If -brtl is somewhere in LDFLAGS, we need to do run time linking.  
       aix_use_runtimelinking=no  
       for ld_flag in $LDFLAGS; do  
         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then  
           aix_use_runtimelinking=yes  
           break  
         fi  
       done  
       exp_sym_flag='-bexport'  
       no_entry_flag='-bnoentry'  
     fi  
     # It seems that -bexpall can do strange things, so it is better to  
     # generate a list of symbols to export.  
     always_export_symbols=yes  
     if test "$aix_use_runtimelinking" = yes; then  
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'  
       allow_undefined_flag=' -Wl,-G'  
       archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"  
     else  
       if test "$host_cpu" = ia64; then  
         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'  
        allow_undefined_flag="-znodefs"  
         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"  
       else  
         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'  
         # Warning - without using the other run time loading flags, -berok will  
         #           link without error, but may produce a broken library.  
         allow_undefined_flag='${wl}-berok"  
         # This is a bit strange, but is similar to how AIX traditionally builds  
         # it's shared libraries.  
         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'  
       fi  
     fi  
     ;;  
   
   amigaos*)  
     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_minus_L=yes  
     # see comment about different semantics on the GNU ld section  
     ld_shlibs=no  
     ;;  
   
   cygwin* | mingw* | pw32*)  
     # When not using gcc, we currently assume that we are using  
     # Microsoft Visual C++.  
     # hardcode_libdir_flag_spec is actually meaningless, as there is  
     # no search path for DLLs.  
     hardcode_libdir_flag_spec=' '  
     allow_undefined_flag=unsupported  
     # Tell ltmain to make .lib files, not .a files.  
     libext=lib  
     # FIXME: Setting linknames here is a bad hack.  
     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='  
     # The linker will automatically build a .lib file if we build a DLL.  
     old_archive_from_new_cmds='true'  
     # FIXME: Should let the user specify the lib program.  
     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'  
     fix_srcfile_path='`cygpath -w "$srcfile"`'  
     ;;  
   
   darwin* | rhapsody*)  
     allow_undefined_flag='-undefined suppress'  
     # FIXME: Relying on posixy $() will cause problems for  
     #        cross-compilation, but unfortunately the echo tests do not  
     #        yet detect zsh echo's removal of \ escapes.  
     archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'  
     # We need to add '_' to the symbols in $export_symbols first  
     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     whole_archive_flag_spec='-all_load $convenience'  
     ;;  
   
   freebsd1*)  
     ld_shlibs=no  
     ;;  
   
   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor  
   # support.  Future versions do this automatically, but an explicit c++rt0.o  
   # does not break anything, and helps significantly (at the cost of a little  
   # extra space).  
   freebsd2.2*)  
     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   # Unfortunately, older versions of FreeBSD 2 do not have this feature.  
   freebsd2*)  
     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_direct=yes  
     hardcode_minus_L=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.  
   freebsd*)  
     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   hpux9* | hpux10* | hpux11*)  
     case $host_os in  
     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;  
     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;  
     esac  
     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'  
     hardcode_libdir_separator=:  
     hardcode_direct=yes  
     hardcode_minus_L=yes # Not in the search PATH, but as the default  
                          # location of the library.  
     export_dynamic_flag_spec='${wl}-E'  
     ;;  
   
   irix5* | irix6*)  
     if test "$GCC" = yes; then  
       archive_cmds='$CC -shared $libobjs $deplibs $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'  
     else  
       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'  
     fi  
     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     hardcode_libdir_separator=:  
     link_all_deplibs=yes  
     ;;  
   
   netbsd*)  
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then  
       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out  
     else  
       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF  
     fi  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   newsos6)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'  
     hardcode_direct=yes  
     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     hardcode_libdir_separator=:  
     hardcode_shlibpath_var=no  
     ;;  
   
   openbsd*)  
     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   os2*)  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_minus_L=yes  
     allow_undefined_flag=unsupported  
     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'  
     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'  
     ;;  
   
   osf3*)  
     if test "$GCC" = yes; then  
       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'  
       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'  
     else  
       allow_undefined_flag=' -expect_unresolved \*'  
       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'  
     fi  
     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     hardcode_libdir_separator=:  
     ;;  
   
   osf4* | osf5*)        # as osf3* with the addition of -msym flag  
     if test "$GCC" = yes; then  
       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'  
       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'  
       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     else  
       allow_undefined_flag=' -expect_unresolved \*'  
       archive_cmds='$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'  
       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~  
       $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'  
   
       #Both c and cxx compiler support -rpath directly  
       hardcode_libdir_flag_spec='-rpath $libdir'  
     fi  
     hardcode_libdir_separator=:  
     ;;  
   
   sco3.2v5*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_shlibpath_var=no  
     runpath_var=LD_RUN_PATH  
     hardcode_runpath_var=yes  
     ;;  
   
   solaris*)  
     no_undefined_flag=' -z defs'  
     # $CC -shared without GNU ld will not create a library from C++  
     # object files and a static libstdc++, better avoid it by now  
     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~  
                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_shlibpath_var=no  
     case $host_os in  
     [solaris2.[0-5] | solaris2.[0-5].*]) ;;  
     *) # Supported since Solaris 2.6 (maybe 2.5.1?)  
       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;  
     esac  
     link_all_deplibs=yes  
     ;;  
   
   sunos4*)  
     if test "x$host_vendor" = xsequent; then  
       # Use $CC to link under sequent, because it throws in some extra .o  
       # files that make .init and .fini sections work.  
       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'  
     else  
       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'  
     fi  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_direct=yes  
     hardcode_minus_L=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   sysv4)  
     if test "x$host_vendor" = xsno; then  
       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'  
       hardcode_direct=yes # is this really true???  
     else  
       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
       hardcode_direct=no #Motorola manual says yes, but my tests say they lie  
     fi  
     runpath_var='LD_RUN_PATH'  
     hardcode_shlibpath_var=no  
     ;;  
   
   sysv4.3*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_shlibpath_var=no  
     export_dynamic_flag_spec='-Bexport'  
     ;;  
   
   sysv5*)  
     no_undefined_flag=' -z text'  
     # $CC -shared without GNU ld will not create a library from C++  
     # object files and a static libstdc++, better avoid it by now  
     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~  
                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'  
     hardcode_libdir_flag_spec=  
     hardcode_shlibpath_var=no  
     runpath_var='LD_RUN_PATH'  
     ;;  
   
   uts4*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_shlibpath_var=no  
     ;;  
   
   dgux*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_shlibpath_var=no  
     ;;  
   
   sysv4*MP*)  
     if test -d /usr/nec; then  
       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
       hardcode_shlibpath_var=no  
       runpath_var=LD_RUN_PATH  
       hardcode_runpath_var=yes  
       ld_shlibs=yes  
     fi  
     ;;  
   
   sysv4.2uw2*)  
     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_direct=yes  
     hardcode_minus_L=no  
     hardcode_shlibpath_var=no  
     hardcode_runpath_var=yes  
     runpath_var=LD_RUN_PATH  
     ;;  
   
   sysv5uw7* | unixware7*)  
     no_undefined_flag='${wl}-z ${wl}text'  
     if test "$GCC" = yes; then  
       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'  
     else  
       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'  
     fi  
     runpath_var='LD_RUN_PATH'  
     hardcode_shlibpath_var=no  
     ;;  
   
   *)  
     ld_shlibs=no  
     ;;  
   esac  
992  fi  fi
993  AC_MSG_RESULT([$ld_shlibs])  rmdir .libs 2>/dev/null])
994  test "$ld_shlibs" = no && can_build_shared=no  objdir=$lt_cv_objdir
995    ])# AC_LIBTOOL_OBJDIR
996    
997    
998    # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
999    # ----------------------------------------------
1000  # Check hardcoding attributes.  # Check hardcoding attributes.
1001  AC_MSG_CHECKING([how to hardcode library paths into programs])  AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1002  hardcode_action=  [AC_MSG_CHECKING([how to hardcode library paths into programs])
1003  if test -n "$hardcode_libdir_flag_spec" || \  _LT_AC_TAGVAR(hardcode_action, $1)=
1004     test -n "$runpath_var"; then  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1005       test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1006       test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1007    
1008    # We can hardcode non-existant directories.    # We can hardcode non-existant directories.
1009    if test "$hardcode_direct" != no &&    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1010       # If the only mechanism to avoid hardcoding is shlibpath_var, we       # If the only mechanism to avoid hardcoding is shlibpath_var, we
1011       # have to relink, otherwise we might link with an installed library       # have to relink, otherwise we might link with an installed library
1012       # when we should be linking with a yet-to-be-installed one       # when we should be linking with a yet-to-be-installed one
1013       ## test "$hardcode_shlibpath_var" != no &&       ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1014       test "$hardcode_minus_L" != no; then       test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1015      # Linking always hardcodes the temporary library directory.      # Linking always hardcodes the temporary library directory.
1016      hardcode_action=relink      _LT_AC_TAGVAR(hardcode_action, $1)=relink
1017    else    else
1018      # We can link without hardcoding, and we can hardcode nonexisting dirs.      # We can link without hardcoding, and we can hardcode nonexisting dirs.
1019      hardcode_action=immediate      _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1020    fi    fi
1021  else  else
1022    # We cannot hardcode anything, or else we can only hardcode existing    # We cannot hardcode anything, or else we can only hardcode existing
1023    # directories.    # directories.
1024    hardcode_action=unsupported    _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1025  fi  fi
1026  AC_MSG_RESULT([$hardcode_action])  AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1027    
1028  striplib=  if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1029      # Fast installation is not supported
1030      enable_fast_install=no
1031    elif test "$shlibpath_overrides_runpath" = yes ||
1032         test "$enable_shared" = no; then
1033      # Fast installation is not necessary
1034      enable_fast_install=needless
1035    fi
1036    ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1037    
1038    
1039    # AC_LIBTOOL_SYS_LIB_STRIP
1040    # ------------------------
1041    AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1042    [striplib=
1043  old_striplib=  old_striplib=
1044  AC_MSG_CHECKING([whether stripping libraries is possible])  AC_MSG_CHECKING([whether stripping libraries is possible])
1045  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
# Line 1751  if test -n "$STRIP" && $STRIP -V 2>&1 | Line 1047  if test -n "$STRIP" && $STRIP -V 2>&1 |
1047    test -z "$striplib" && striplib="$STRIP --strip-unneeded"    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1048    AC_MSG_RESULT([yes])    AC_MSG_RESULT([yes])
1049  else  else
1050    # FIXME - insert some real tests, host_os isn't really good enough
1051      case $host_os in
1052       darwin*)
1053           if test -n "$STRIP" ; then
1054             striplib="$STRIP -x"
1055             AC_MSG_RESULT([yes])
1056           else
1057    AC_MSG_RESULT([no])    AC_MSG_RESULT([no])
1058  fi  fi
1059           ;;
1060       *)
1061      AC_MSG_RESULT([no])
1062        ;;
1063      esac  
1064    fi
1065    ])# AC_LIBTOOL_SYS_LIB_STRIP
1066    
 reload_cmds='$LD$reload_flag -o $output$reload_objs'  
 test -z "$deplibs_check_method" && deplibs_check_method=unknown  
1067    
1068    # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1069    # -----------------------------
1070  # PORTME Fill in your ld.so characteristics  # PORTME Fill in your ld.so characteristics
1071  AC_MSG_CHECKING([dynamic linker characteristics])  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1072    [AC_MSG_CHECKING([dynamic linker characteristics])
1073  library_names_spec=  library_names_spec=
1074  libname_spec='lib$name'  libname_spec='lib$name'
1075  soname_spec=  soname_spec=
1076    shrext=".so"
1077  postinstall_cmds=  postinstall_cmds=
1078  postuninstall_cmds=  postuninstall_cmds=
1079  finish_cmds=  finish_cmds=
# Line 1771  shlibpath_overrides_runpath=unknown Line 1083  shlibpath_overrides_runpath=unknown
1083  version_type=none  version_type=none
1084  dynamic_linker="$host_os ld.so"  dynamic_linker="$host_os ld.so"
1085  sys_lib_dlsearch_path_spec="/lib /usr/lib"  sys_lib_dlsearch_path_spec="/lib /usr/lib"
1086  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"  if test "$GCC" = yes; then
1087      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1088      if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1089        # if the path contains ";" then we assume it to be the separator
1090        # otherwise default to the standard path separator (i.e. ":") - it is
1091        # assumed that no part of a normal pathname contains ";" but that should
1092        # okay in the real world where ";" in dirpaths is itself problematic.
1093        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1094      else
1095        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1096      fi
1097    else
1098      sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1099    fi
1100    need_lib_prefix=unknown
1101    hardcode_into_libs=no
1102    
1103    # when you set need_version to no, make sure it does not cause -set_version
1104    # flags to be left without arguments
1105    need_version=unknown
1106    
1107  case $host_os in  case $host_os in
1108  aix3*)  aix3*)
1109    version_type=linux    version_type=linux
1110    library_names_spec='${libname}${release}.so$versuffix $libname.a'    library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1111    shlibpath_var=LIBPATH    shlibpath_var=LIBPATH
1112    
1113    # AIX has no versioning support, so we append a major version to the name.    # AIX 3 has no versioning support, so we append a major version to the name.
1114    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1115    ;;    ;;
1116    
1117  aix4* | aix5*)  aix4* | aix5*)
1118    version_type=linux    version_type=linux
1119      need_lib_prefix=no
1120      need_version=no
1121      hardcode_into_libs=yes
1122    if test "$host_cpu" = ia64; then    if test "$host_cpu" = ia64; then
1123      # AIX 5 supports IA64      # AIX 5 supports IA64
1124      library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'      library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1125      shlibpath_var=LD_LIBRARY_PATH      shlibpath_var=LD_LIBRARY_PATH
1126    else    else
1127      # With GCC up to 2.95.x, collect2 would create an import file      # With GCC up to 2.95.x, collect2 would create an import file
# Line 1796  aix4* | aix5*) Line 1130  aix4* | aix5*)
1130      # depend on `.', always an invalid library.  This was fixed in      # depend on `.', always an invalid library.  This was fixed in
1131      # development snapshots of GCC prior to 3.0.      # development snapshots of GCC prior to 3.0.
1132      case $host_os in      case $host_os in
1133        [ aix4 | aix4.[01] | aix4.[01].*)]        aix4 | aix4.[[01]] | aix4.[[01]].*)
1134        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1135             echo ' yes '             echo ' yes '
1136             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1137          :          :
1138        else        else
1139          can_build_shared=no          can_build_shared=no
1140        fi        fi
1141        ;;        ;;
1142      esac      esac
# Line 1810  aix4* | aix5*) Line 1144  aix4* | aix5*)
1144      # soname into executable. Probably we can add versioning support to      # soname into executable. Probably we can add versioning support to
1145      # collect2, so additional links can be useful in future.      # collect2, so additional links can be useful in future.
1146      if test "$aix_use_runtimelinking" = yes; then      if test "$aix_use_runtimelinking" = yes; then
1147        # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1148        # lib<name>.a to let people know that these are not typical AIX shared libraries.        # instead of lib<name>.a to let people know that these are not
1149        library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'        # typical AIX shared libraries.
1150          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1151      else      else
1152        # We preserve .a as extension for shared libraries through AIX4.2        # We preserve .a as extension for shared libraries through AIX4.2
1153        # and later when we are not doing run time linking.        # and later when we are not doing run time linking.
1154        library_names_spec='${libname}${release}.a $libname.a'        library_names_spec='${libname}${release}.a $libname.a'
1155        soname_spec='${libname}${release}.so$major'        soname_spec='${libname}${release}${shared_ext}$major'
1156      fi      fi
1157      shlibpath_var=LIBPATH      shlibpath_var=LIBPATH
     deplibs_check_method=pass_all  
1158    fi    fi
1159    ;;    ;;
1160    
1161  amigaos*)  amigaos*)
1162    library_names_spec='$libname.ixlibrary $libname.a'    library_names_spec='$libname.ixlibrary $libname.a'
1163    # Create ${libname}_ixlibrary.a entries in /sys/libs.    # Create ${libname}_ixlibrary.a entries in /sys/libs.
1164    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | [$Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\'']`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
1165    ;;    ;;
1166    
1167  beos*)  beos*)
1168    library_names_spec='${libname}.so'    library_names_spec='${libname}${shared_ext}'
1169    dynamic_linker="$host_os ld.so"    dynamic_linker="$host_os ld.so"
1170    shlibpath_var=LIBRARY_PATH    shlibpath_var=LIBRARY_PATH
1171    ;;    ;;
# Line 1839  beos*) Line 1173  beos*)
1173  bsdi4*)  bsdi4*)
1174    version_type=linux    version_type=linux
1175    need_version=no    need_version=no
1176    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1177    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1178    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1179    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1180    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1181    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   export_dynamic_flag_spec=-rdynamic  
1182    # the default ld.so.conf also contains /usr/contrib/lib and    # the default ld.so.conf also contains /usr/contrib/lib and
1183    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1184    # libtool to hard-code these into programs    # libtool to hard-code these into programs
# Line 1853  bsdi4*) Line 1186  bsdi4*)
1186    
1187  cygwin* | mingw* | pw32*)  cygwin* | mingw* | pw32*)
1188    version_type=windows    version_type=windows
1189      shrext=".dll"
1190    need_version=no    need_version=no
1191    need_lib_prefix=no    need_lib_prefix=no
1192    
1193    case $GCC,$host_os in    case $GCC,$host_os in
1194    yes,cygwin*)    yes,cygwin* | yes,mingw* | yes,pw32*)
1195      library_names_spec='$libname.dll.a'      library_names_spec='$libname.dll.a'
1196      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'      # DLL is installed to $(libdir)/../bin by postinstall_cmds
1197      postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~      postinstall_cmds='base_file=`basename \${file}`~
1198          dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1199        dldir=$destdir/`dirname \$dlpath`~        dldir=$destdir/`dirname \$dlpath`~
1200        test -d \$dldir || mkdir -p \$dldir~        test -d \$dldir || mkdir -p \$dldir~
1201        $install_prog .libs/$dlname \$dldir/$dlname'        $install_prog $dir/$dlname \$dldir/$dlname'
1202      postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1203        dlpath=$dir/\$dldll~        dlpath=$dir/\$dldll~
1204         $rm \$dlpath'         $rm \$dlpath'
1205        shlibpath_overrides_runpath=yes
1206    
1207        case $host_os in
1208        cygwin*)
1209          # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1210          soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1211          sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
1212          ;;
1213        mingw*)
1214          # MinGW DLLs use traditional 'lib' prefix
1215          soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1216          sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1217          if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1218            # It is most probably a Windows format PATH printed by
1219            # mingw gcc, but we are running on Cygwin. Gcc prints its search
1220            # path with ; separators, and with drive letters. We can handle the
1221            # drive letters (cygwin fileutils understands them), so leave them,
1222            # especially as we might pass files found there to a mingw objdump,
1223            # which wouldn't understand a cygwinified path. Ahh.
1224            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1225          else
1226            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1227          fi
1228          ;;
1229        pw32*)
1230          # pw32 DLLs use 'pw' prefix rather than 'lib'
1231          library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1232          ;;
1233        esac
1234      ;;      ;;
1235    yes,mingw*)  
     library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'  
     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`  
     ;;  
   yes,pw32*)  
     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'  
     ;;  
1236    *)    *)
1237      library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll $libname.lib'      library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1238      ;;      ;;
1239    esac    esac
1240    dynamic_linker='Win32 ld.exe'    dynamic_linker='Win32 ld.exe'
# Line 1891  darwin* | rhapsody*) Line 1250  darwin* | rhapsody*)
1250    # FIXME: Relying on posixy $() will cause problems for    # FIXME: Relying on posixy $() will cause problems for
1251    #        cross-compilation, but unfortunately the echo tests do not    #        cross-compilation, but unfortunately the echo tests do not
1252    #        yet detect zsh echo's removal of \ escapes.    #        yet detect zsh echo's removal of \ escapes.
1253    library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'    library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1254    soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'    soname_spec='${libname}${release}${major}$shared_ext'
1255    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1256    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
1257      shrext='$(test .$module = .yes && echo .so || echo .dylib)'
1258      # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1259      if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
1260      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"`
1261      fi
1262      sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1263      ;;
1264    
1265    dgux*)
1266      version_type=linux
1267      need_lib_prefix=no
1268      need_version=no
1269      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1270      soname_spec='${libname}${release}${shared_ext}$major'
1271      shlibpath_var=LD_LIBRARY_PATH
1272    ;;    ;;
1273    
1274  freebsd1*)  freebsd1*)
# Line 1906  freebsd*) Line 1280  freebsd*)
1280    version_type=freebsd-$objformat    version_type=freebsd-$objformat
1281    case $version_type in    case $version_type in
1282      freebsd-elf*)      freebsd-elf*)
1283        library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1284        need_version=no        need_version=no
1285        need_lib_prefix=no        need_lib_prefix=no
1286        ;;        ;;
1287      freebsd-*)      freebsd-*)
1288        library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1289        need_version=yes        need_version=yes
1290        ;;        ;;
1291    esac    esac
# Line 1920  freebsd*) Line 1294  freebsd*)
1294    freebsd2*)    freebsd2*)
1295      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
1296      ;;      ;;
1297    *)    freebsd3.[01]* | freebsdelf3.[01]*)
1298        shlibpath_overrides_runpath=yes
1299        hardcode_into_libs=yes
1300        ;;
1301      *) # from 3.2 on
1302      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
1303      hardcode_into_libs=yes      hardcode_into_libs=yes
1304      ;;      ;;
# Line 1931  gnu*) Line 1309  gnu*)
1309    version_type=linux    version_type=linux
1310    need_lib_prefix=no    need_lib_prefix=no
1311    need_version=no    need_version=no
1312    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1313    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1314    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1315    hardcode_into_libs=yes    hardcode_into_libs=yes
1316    ;;    ;;
# Line 1940  gnu*) Line 1318  gnu*)
1318  hpux9* | hpux10* | hpux11*)  hpux9* | hpux10* | hpux11*)
1319    # Give a soname corresponding to the major version so that dld.sl refuses to    # Give a soname corresponding to the major version so that dld.sl refuses to
1320    # link against other versions.    # link against other versions.
   dynamic_linker="$host_os dld.sl"  
1321    version_type=sunos    version_type=sunos
1322    need_lib_prefix=no    need_lib_prefix=no
1323    need_version=no    need_version=no
1324    shlibpath_var=SHLIB_PATH    case "$host_cpu" in
1325    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH    ia64*)
1326    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'      shrext='.so'
1327    soname_spec='${libname}${release}.sl$major'      hardcode_into_libs=yes
1328        dynamic_linker="$host_os dld.so"
1329        shlibpath_var=LD_LIBRARY_PATH
1330        shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1331        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1332        soname_spec='${libname}${release}${shared_ext}$major'
1333        if test "X$HPUX_IA64_MODE" = X32; then
1334          sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1335        else
1336          sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1337        fi
1338        sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1339        ;;
1340       hppa*64*)
1341         shrext='.sl'
1342         hardcode_into_libs=yes
1343         dynamic_linker="$host_os dld.sl"
1344         shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1345         shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1346         library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1347         soname_spec='${libname}${release}${shared_ext}$major'
1348         sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1349         sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1350         ;;
1351       *)
1352        shrext='.sl'
1353        dynamic_linker="$host_os dld.sl"
1354        shlibpath_var=SHLIB_PATH
1355        shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1356        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1357        soname_spec='${libname}${release}${shared_ext}$major'
1358        ;;
1359      esac
1360    # HP-UX runs *really* slowly unless shared libraries are mode 555.    # HP-UX runs *really* slowly unless shared libraries are mode 555.
1361    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
1362    ;;    ;;
1363    
1364  irix5* | irix6*)  irix5* | irix6* | nonstopux*)
1365    version_type=irix    case $host_os in
1366        nonstopux*) version_type=nonstopux ;;
1367        *)
1368            if test "$lt_cv_prog_gnu_ld" = yes; then
1369                    version_type=linux
1370            else
1371                    version_type=irix
1372            fi ;;
1373      esac
1374    need_lib_prefix=no    need_lib_prefix=no
1375    need_version=no    need_version=no
1376    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1377    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1378    case $host_os in    case $host_os in
1379    irix5*)    irix5* | nonstopux*)
1380      libsuff= shlibsuff=      libsuff= shlibsuff=
1381      ;;      ;;
1382    *)    *)
1383      case $LD in # libtool.m4 will add one of these switches to LD      case $LD in # libtool.m4 will add one of these switches to LD
1384      *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;      *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1385      *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;        libsuff= shlibsuff= libmagic=32-bit;;
1386      *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;      *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1387          libsuff=32 shlibsuff=N32 libmagic=N32;;
1388        *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1389          libsuff=64 shlibsuff=64 libmagic=64-bit;;
1390      *) libsuff= shlibsuff= libmagic=never-match;;      *) libsuff= shlibsuff= libmagic=never-match;;
1391      esac      esac
1392      ;;      ;;
# Line 1975  irix5* | irix6*) Line 1395  irix5* | irix6*)
1395    shlibpath_overrides_runpath=no    shlibpath_overrides_runpath=no
1396    sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"    sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1397    sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"    sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1398      hardcode_into_libs=yes
1399    ;;    ;;
1400    
1401  # No shared lib support for Linux oldld, aout, or coff.  # No shared lib support for Linux oldld, aout, or coff.
1402  linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)  linux*oldld* | linux*aout* | linux*coff*)
1403    dynamic_linker=no    dynamic_linker=no
1404    ;;    ;;
1405    
1406  # This must be Linux ELF.  # This must be Linux ELF.
1407  linux-gnu*)  linux*)
1408    version_type=linux    version_type=linux
1409    need_lib_prefix=no    need_lib_prefix=no
1410    need_version=no    need_version=no
1411    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1412    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1413    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1414    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1415    shlibpath_overrides_runpath=no    shlibpath_overrides_runpath=no
# Line 2011  netbsd*) Line 1432  netbsd*)
1432    need_lib_prefix=no    need_lib_prefix=no
1433    need_version=no    need_version=no
1434    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1435      library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1436      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1437      dynamic_linker='NetBSD (a.out) ld.so'      dynamic_linker='NetBSD (a.out) ld.so'
1438    else    else
1439      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
1440      soname_spec='${libname}${release}.so$major'      soname_spec='${libname}${release}${shared_ext}$major'
1441      dynamic_linker='NetBSD ld.elf_so'      dynamic_linker='NetBSD ld.elf_so'
1442    fi    fi
1443    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
# Line 2026  netbsd*) Line 1447  netbsd*)
1447    
1448  newsos6)  newsos6)
1449    version_type=linux    version_type=linux
1450    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1451      shlibpath_var=LD_LIBRARY_PATH
1452      shlibpath_overrides_runpath=yes
1453      ;;
1454    
1455    nto-qnx)
1456      version_type=linux
1457      need_lib_prefix=no
1458      need_version=no
1459      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1460      soname_spec='${libname}${release}${shared_ext}$major'
1461    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1462    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1463    ;;    ;;
1464    
1465  openbsd*)  openbsd*)
1466    version_type=sunos    version_type=sunos
1467    if test "$with_gnu_ld" = yes; then    need_lib_prefix=no
1468      need_lib_prefix=no    need_version=no
1469      need_version=no    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   fi  
   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'  
1470    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1471    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1472      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1473        case $host_os in
1474          openbsd2.[[89]] | openbsd2.[[89]].*)
1475            shlibpath_overrides_runpath=no
1476            ;;
1477          *)
1478            shlibpath_overrides_runpath=yes
1479            ;;
1480          esac
1481      else
1482        shlibpath_overrides_runpath=yes
1483      fi
1484    ;;    ;;
1485    
1486  os2*)  os2*)
1487    libname_spec='$name'    libname_spec='$name'
1488      shrext=".dll"
1489    need_lib_prefix=no    need_lib_prefix=no
1490    library_names_spec='$libname.dll $libname.a'    library_names_spec='$libname${shared_ext} $libname.a'
1491    dynamic_linker='OS/2 ld.exe'    dynamic_linker='OS/2 ld.exe'
1492    shlibpath_var=LIBPATH    shlibpath_var=LIBPATH
1493    ;;    ;;
1494    
1495  osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
1496    version_type=osf    version_type=osf
1497      need_lib_prefix=no
1498    need_version=no    need_version=no
1499    soname_spec='${libname}${release}.so'    soname_spec='${libname}${release}${shared_ext}$major'
1500    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1501    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1502    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1503    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
# Line 2062  osf3* | osf4* | osf5*) Line 1505  osf3* | osf4* | osf5*)
1505    
1506  sco3.2v5*)  sco3.2v5*)
1507    version_type=osf    version_type=osf
1508    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1509    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1510    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1511    ;;    ;;
1512    
# Line 2071  solaris*) Line 1514  solaris*)
1514    version_type=linux    version_type=linux
1515    need_lib_prefix=no    need_lib_prefix=no
1516    need_version=no    need_version=no
1517    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1518    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1519    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1520    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1521    hardcode_into_libs=yes    hardcode_into_libs=yes
# Line 2082  solaris*) Line 1525  solaris*)
1525    
1526  sunos4*)  sunos4*)
1527    version_type=sunos    version_type=sunos
1528    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1529    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1530    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1531    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
# Line 2094  sunos4*) Line 1537  sunos4*)
1537    
1538  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1539    version_type=linux    version_type=linux
1540    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1541    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1542    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1543    case $host_vendor in    case $host_vendor in
1544      sni)      sni)
1545        shlibpath_overrides_runpath=no        shlibpath_overrides_runpath=no
1546          need_lib_prefix=no
1547          export_dynamic_flag_spec='${wl}-Blargedynsym'
1548          runpath_var=LD_RUN_PATH
1549          ;;
1550        siemens)
1551          need_lib_prefix=no
1552        ;;        ;;
1553      motorola)      motorola)
1554        need_lib_prefix=no        need_lib_prefix=no
# Line 2110  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 1559  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1559    esac    esac
1560    ;;    ;;
1561    
 uts4*)  
   version_type=linux  
   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  
   soname_spec='${libname}${release}.so$major'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
 dgux*)  
   version_type=linux  
   need_lib_prefix=no  
   need_version=no  
   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  
   soname_spec='${libname}${release}.so$major'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
1562  sysv4*MP*)  sysv4*MP*)
1563    if test -d /usr/nec ;then    if test -d /usr/nec ;then
1564      version_type=linux      version_type=linux
1565      library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'      library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1566      soname_spec='$libname.so.$major'      soname_spec='$libname${shared_ext}.$major'
1567      shlibpath_var=LD_LIBRARY_PATH      shlibpath_var=LD_LIBRARY_PATH
1568    fi    fi
1569    ;;    ;;
1570    
1571    uts4*)
1572      version_type=linux
1573      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1574      soname_spec='${libname}${release}${shared_ext}$major'
1575      shlibpath_var=LD_LIBRARY_PATH
1576      ;;
1577    
1578  *)  *)
1579    dynamic_linker=no    dynamic_linker=no
1580    ;;    ;;
1581  esac  esac
1582  AC_MSG_RESULT([$dynamic_linker])  AC_MSG_RESULT([$dynamic_linker])
1583  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
1584    ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1585    
 # Report the final consequences.  
 AC_MSG_CHECKING([if libtool supports shared libraries])  
 AC_MSG_RESULT([$can_build_shared])  
1586    
1587  if test "$hardcode_action" = relink; then  # _LT_AC_TAGCONFIG
1588    # Fast installation is not supported  # ----------------
1589    enable_fast_install=no  AC_DEFUN([_LT_AC_TAGCONFIG],
1590  elif test "$shlibpath_overrides_runpath" = yes ||  [AC_ARG_WITH([tags],
1591       test "$enable_shared" = no; then      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1592    # Fast installation is not necessary          [include additional configurations @<:@automatic@:>@])],
1593    enable_fast_install=needless      [tagnames="$withval"])
1594  fi  
1595    if test -f "$ltmain" && test -n "$tagnames"; then
1596  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"    if test ! -f "${ofile}"; then
1597  if test "$GCC" = yes; then      AC_MSG_WARN([output file `$ofile' does not exist])
1598    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"    fi
 fi  
   
 AC_LIBTOOL_DLOPEN_SELF  
1599    
1600  if test "$enable_shared" = yes && test "$GCC" = yes; then    if test -z "$LTCC"; then
1601    case $archive_cmds in      eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1602    *'~'*)      if test -z "$LTCC"; then
1603      # FIXME: we may have to deal with multi-command sequences.        AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
     ;;  
   '$CC '*)  
     # Test whether the compiler implicitly links with -lc since on some  
     # systems, -lgcc has to come before -lc. If gcc already passes -lc  
     # to ld, don't add -lc before -lgcc.  
     AC_MSG_CHECKING([whether -lc should be explicitly linked in])  
     AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],  
     [$rm conftest*  
     echo 'static int dummy;' > conftest.$ac_ext  
   
     if AC_TRY_EVAL(ac_compile); then  
       soname=conftest  
       lib=conftest  
       libobjs=conftest.$ac_objext  
       deplibs=  
       wl=$lt_cv_prog_cc_wl  
       compiler_flags=-v  
       linker_flags=-v  
       verstring=  
       output_objdir=.  
       libname=conftest  
       save_allow_undefined_flag=$allow_undefined_flag  
       allow_undefined_flag=  
       if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)  
       then  
         lt_cv_archive_cmds_need_lc=no  
       else  
         lt_cv_archive_cmds_need_lc=yes  
       fi  
       allow_undefined_flag=$save_allow_undefined_flag  
1604      else      else
1605        cat conftest.err 1>&5        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1606      fi])      fi
1607      AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])    fi
     ;;  
   esac  
 fi  
 need_lc=${lt_cv_archive_cmds_need_lc-yes}  
   
 # The second clause should only fire when bootstrapping the  
 # libtool distribution, otherwise you forgot to ship ltmain.sh  
 # with your package, and you will get complaints that there are  
 # no rules to generate ltmain.sh.  
 if test -f "$ltmain"; then  
   :  
 else  
   # If there is no Makefile yet, we rely on a make rule to execute  
   # `config.status --recheck' to rerun these tests and create the  
   # libtool script then.  
   test -f Makefile && make "$ltmain"  
 fi  
   
 if test -f "$ltmain"; then  
   trap "$rm \"${ofile}T\"; exit 1" 1 2 15  
   $rm -f "${ofile}T"  
   
   echo creating $ofile  
   
   # Now quote all the things that may contain metacharacters while being  
   # careful not to overquote the AC_SUBSTed values.  We take copies of the  
   # variables and quote the copies for generation of the libtool script.  
   for var in echo old_CC old_CFLAGS \  
     AR AR_FLAGS CC LD LN_S NM SHELL \  
     reload_flag reload_cmds wl \  
     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \  
     thread_safe_flag_spec whole_archive_flag_spec libname_spec \  
     library_names_spec soname_spec \  
     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \  
     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \  
     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \  
     old_striplib striplib file_magic_cmd export_symbols_cmds \  
     deplibs_check_method allow_undefined_flag no_undefined_flag \  
     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \  
     hardcode_libdir_flag_spec hardcode_libdir_separator  \  
     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \  
     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do  
1608    
1609      case $var in    # Extract list of available tagged configurations in $ofile.
1610      reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \    # Note that this assumes the entire list is on one line.
1611      old_postinstall_cmds | old_postuninstall_cmds | \    available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1612      export_symbols_cmds | archive_cmds | archive_expsym_cmds | \  
1613      extract_expsyms_cmds | old_archive_from_expsyms_cmds | \    lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1614      postinstall_cmds | postuninstall_cmds | \    for tagname in $tagnames; do
1615      finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)      IFS="$lt_save_ifs"
1616        # Double-quote double-evaled strings.      # Check whether tagname contains only valid characters
1617        eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""      case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1618        ;;      "") ;;
1619      *)      *)  AC_MSG_ERROR([invalid tag name: $tagname])
1620        eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""          ;;
       ;;  
1621      esac      esac
   done  
   
   cat <<__EOF__ > "${ofile}T"  
 #! $SHELL  
   
 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.  
 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)  
 # NOTE: Changes made to this file will be lost: look at ltmain.sh.  
 #  
 # Copyright (C) 1996-2000 Free Software Foundation, Inc.  
 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996  
 #  
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2 of the License, or  
 # (at your option) any later version.  
 #  
 # This program is distributed in the hope that it will be useful, but  
 # WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  
 # General Public License for more details.  
 #  
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 #  
 # As a special exception to the GNU General Public License, if you  
 # distribute this file as part of a program that contains a  
 # configuration script generated by Autoconf, you may include it under  
 # the same distribution terms that you use for the rest of that program.  
   
 # Sed that helps us avoid accidentally triggering echo(1) options like -n.  
 Xsed="sed -e s/^X//"  
   
 # The HP-UX ksh and POSIX shell print the target directory to stdout  
 # if CDPATH is set.  
 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi  
   
 # ### BEGIN LIBTOOL CONFIG  
1622    
1623  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:      if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1624        then
1625  # Shell to use when invoking shell scripts.        AC_MSG_ERROR([tag name \"$tagname\" already exists])
1626  SHELL=$lt_SHELL      fi
   
 # Whether or not to build shared libraries.  
 build_libtool_libs=$enable_shared  
   
 # Whether or not to add -lc for building shared libraries.  
 build_libtool_need_lc=$need_lc  
   
 # Whether or not to build static libraries.  
 build_old_libs=$enable_static  
   
 # Whether or not to optimize for fast installation.  
 fast_install=$enable_fast_install  
   
 # The host system.  
 host_alias=$host_alias  
 host=$host  
   
 # An echo program that does not interpret backslashes.  
 echo=$lt_echo  
   
 # The archiver.  
 AR=$lt_AR  
 AR_FLAGS=$lt_AR_FLAGS  
   
 # The default C compiler.  
 CC=$lt_CC  
   
 # Is the compiler the GNU C compiler?  
 with_gcc=$GCC  
   
 # The linker used to build libraries.  
 LD=$lt_LD  
   
 # Whether we need hard or soft links.  
 LN_S=$lt_LN_S  
   
 # A BSD-compatible nm program.  
 NM=$lt_NM  
   
 # A symbol stripping program  
 STRIP=$STRIP  
   
 # Used to examine libraries when file_magic_cmd begins "file"  
 MAGIC_CMD=$MAGIC_CMD  
   
 # Used on cygwin: DLL creation program.  
 DLLTOOL="$DLLTOOL"  
   
 # Used on cygwin: object dumper.  
 OBJDUMP="$OBJDUMP"  
   
 # Used on cygwin: assembler.  
 AS="$AS"  
   
 # The name of the directory that contains temporary libtool files.  
 objdir=$objdir  
   
 # How to create reloadable object files.  
 reload_flag=$lt_reload_flag  
 reload_cmds=$lt_reload_cmds  
   
 # How to pass a linker flag through the compiler.  
 wl=$lt_wl  
   
 # Object file suffix (normally "o").  
 objext="$ac_objext"  
   
 # Old archive suffix (normally "a").  
 libext="$libext"  
   
 # Executable file suffix (normally "").  
 exeext="$exeext"  
   
 # Additional compiler flags for building library objects.  
 pic_flag=$lt_pic_flag  
 pic_mode=$pic_mode  
   
 # Does compiler simultaneously support -c and -o options?  
 compiler_c_o=$lt_compiler_c_o  
   
 # Can we write directly to a .lo ?  
 compiler_o_lo=$lt_compiler_o_lo  
   
 # Must we lock files when doing compilation ?  
 need_locks=$lt_need_locks  
   
 # Do we need the lib prefix for modules?  
 need_lib_prefix=$need_lib_prefix  
   
 # Do we need a version for libraries?  
 need_version=$need_version  
   
 # Whether dlopen is supported.  
 dlopen_support=$enable_dlopen  
   
 # Whether dlopen of programs is supported.  
 dlopen_self=$enable_dlopen_self  
   
 # Whether dlopen of statically linked programs is supported.  
 dlopen_self_static=$enable_dlopen_self_static  
   
 # Compiler flag to prevent dynamic linking.  
 link_static_flag=$lt_link_static_flag  
   
 # Compiler flag to turn off builtin functions.  
 no_builtin_flag=$lt_no_builtin_flag  
   
 # Compiler flag to allow reflexive dlopens.  
 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec  
   
 # Compiler flag to generate shared objects directly from archives.  
 whole_archive_flag_spec=$lt_whole_archive_flag_spec  
   
 # Compiler flag to generate thread-safe objects.  
 thread_safe_flag_spec=$lt_thread_safe_flag_spec  
   
 # Library versioning type.  
 version_type=$version_type  
   
 # Format of library name prefix.  
 libname_spec=$lt_libname_spec  
   
 # List of archive names.  First name is the real one, the rest are links.  
 # The last name is the one that the linker finds with -lNAME.  
 library_names_spec=$lt_library_names_spec  
   
 # The coded name of the library, if different from the real name.  
 soname_spec=$lt_soname_spec  
   
 # Commands used to build and install an old-style archive.  
 RANLIB=$lt_RANLIB  
 old_archive_cmds=$lt_old_archive_cmds  
 old_postinstall_cmds=$lt_old_postinstall_cmds  
 old_postuninstall_cmds=$lt_old_postuninstall_cmds  
   
 # Create an old-style archive from a shared archive.  
 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds  
   
 # Create a temporary old-style archive to link instead of a shared archive.  
 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds  
   
 # Commands used to build and install a shared archive.  
 archive_cmds=$lt_archive_cmds  
 archive_expsym_cmds=$lt_archive_expsym_cmds  
 postinstall_cmds=$lt_postinstall_cmds  
 postuninstall_cmds=$lt_postuninstall_cmds  
   
 # Commands to strip libraries.  
 old_striplib=$lt_old_striplib  
 striplib=$lt_striplib  
   
 # Method to check whether dependent libraries are shared objects.  
 deplibs_check_method=$lt_deplibs_check_method  
   
 # Command to use when deplibs_check_method == file_magic.  
 file_magic_cmd=$lt_file_magic_cmd  
   
 # Flag that allows shared libraries with undefined symbols to be built.  
 allow_undefined_flag=$lt_allow_undefined_flag  
   
 # Flag that forces no undefined symbols.  
 no_undefined_flag=$lt_no_undefined_flag  
   
 # Commands used to finish a libtool library installation in a directory.  
 finish_cmds=$lt_finish_cmds  
   
 # Same as above, but a single script fragment to be evaled but not shown.  
 finish_eval=$lt_finish_eval  
   
 # Take the output of nm and produce a listing of raw symbols and C names.  
 global_symbol_pipe=$lt_global_symbol_pipe  
   
 # Transform the output of nm in a proper C declaration  
 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl  
   
 # This is the shared library runtime path variable.  
 runpath_var=$runpath_var  
   
 # This is the shared library path variable.  
 shlibpath_var=$shlibpath_var  
   
 # Is shlibpath searched before the hard-coded library search path?  
 shlibpath_overrides_runpath=$shlibpath_overrides_runpath  
   
 # How to hardcode a shared library path into an executable.  
 hardcode_action=$hardcode_action  
   
 # Whether we should hardcode library paths into libraries.  
 hardcode_into_libs=$hardcode_into_libs  
   
 # Flag to hardcode \$libdir into a binary during linking.  
 # This must work even if \$libdir does not exist.  
 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec  
   
 # Whether we need a single -rpath flag with a separated argument.  
 hardcode_libdir_separator=$lt_hardcode_libdir_separator  
   
 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the  
 # resulting binary.  
 hardcode_direct=$hardcode_direct  
   
 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the  
 # resulting binary.  
 hardcode_minus_L=$hardcode_minus_L  
   
 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into  
 # the resulting binary.  
 hardcode_shlibpath_var=$hardcode_shlibpath_var  
   
 # Variables whose values should be saved in libtool wrapper scripts and  
 # restored at relink time.  
 variables_saved_for_relink="$variables_saved_for_relink"  
   
 # Whether libtool must link a program against all its dependency libraries.  
 link_all_deplibs=$link_all_deplibs  
   
 # Compile-time system search path for libraries  
 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec  
   
 # Run-time system search path for libraries  
 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec  
   
 # Fix the shell variable \$srcfile for the compiler.  
 fix_srcfile_path="$fix_srcfile_path"  
   
 # Set to yes if exported symbols are required.  
 always_export_symbols=$always_export_symbols  
   
 # The commands to list exported symbols.  
 export_symbols_cmds=$lt_export_symbols_cmds  
1627    
1628  # The commands to extract the exported symbol list from a shared archive.      # Update the list of available tags.
1629  extract_expsyms_cmds=$lt_extract_expsyms_cmds      if test -n "$tagname"; then
1630          echo appending configuration tag \"$tagname\" to $ofile
1631    
1632          case $tagname in
1633          CXX)
1634            if test -n "$CXX" && test "X$CXX" != "Xno"; then
1635              AC_LIBTOOL_LANG_CXX_CONFIG
1636            else
1637              tagname=""
1638            fi
1639            ;;
1640    
1641  # Symbols that should not be listed in the preloaded symbols.        F77)
1642  exclude_expsyms=$lt_exclude_expsyms          if test -n "$F77" && test "X$F77" != "Xno"; then
1643              AC_LIBTOOL_LANG_F77_CONFIG
1644            else
1645              tagname=""
1646            fi
1647            ;;
1648    
1649  # Symbols that must always be exported.        GCJ)
1650  include_expsyms=$lt_include_expsyms          if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1651              AC_LIBTOOL_LANG_GCJ_CONFIG
1652            else
1653              tagname=""
1654            fi
1655            ;;
1656    
1657  # ### END LIBTOOL CONFIG        RC)
1658            AC_LIBTOOL_LANG_RC_CONFIG
1659            ;;
1660    
1661  __EOF__        *)
1662            AC_MSG_ERROR([Unsupported tag name: $tagname])
1663            ;;
1664          esac
1665    
1666    case $host_os in        # Append the new tag name to the list of available tags.
1667    aix3*)        if test -n "$tagname" ; then
1668      cat <<\EOF >> "${ofile}T"        available_tags="$available_tags $tagname"
1669        fi
1670        fi
1671      done
1672      IFS="$lt_save_ifs"
1673    
1674  # AIX sometimes has problems with the GCC collect2 program.  For some    # Now substitute the updated list of available tags.
1675  # reason, if we set the COLLECT_NAMES environment variable, the problems    if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1676  # vanish in a puff of smoke.      mv "${ofile}T" "$ofile"
1677  if test "X${COLLECT_NAMES+set}" != Xset; then      chmod +x "$ofile"
1678    COLLECT_NAMES=    else
1679    export COLLECT_NAMES      rm -f "${ofile}T"
1680        AC_MSG_ERROR([unable to update list of available tagged configurations.])
1681      fi
1682  fi  fi
1683  EOF  ])# _LT_AC_TAGCONFIG
     ;;  
   esac  
   
   case $host_os in  
   cygwin* | mingw* | pw32* | os2*)  
     cat <<'EOF' >> "${ofile}T"  
       # This is a source program that is used to create dlls on Windows  
       # Don't remove nor modify the starting and closing comments  
 # /* ltdll.c starts here */  
 # #define WIN32_LEAN_AND_MEAN  
 # #include <windows.h>  
 # #undef WIN32_LEAN_AND_MEAN  
 # #include <stdio.h>  
 #  
 # #ifndef __CYGWIN__  
 # #  ifdef __CYGWIN32__  
 # #    define __CYGWIN__ __CYGWIN32__  
 # #  endif  
 # #endif  
 #  
 # #ifdef __cplusplus  
 # extern "C" {  
 # #endif  
 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);  
 # #ifdef __cplusplus  
 # }  
 # #endif  
 #  
 # #ifdef __CYGWIN__  
 # #include <cygwin/cygwin_dll.h>  
 # DECLARE_CYGWIN_DLL( DllMain );  
 # #endif  
 # HINSTANCE __hDllInstance_base;  
 #  
 # BOOL APIENTRY  
 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)  
 # {  
 #   __hDllInstance_base = hInst;  
 #   return TRUE;  
 # }  
 # /* ltdll.c ends here */  
         # This is a source program that is used to create import libraries  
         # on Windows for dlls which lack them. Don't remove nor modify the  
         # starting and closing comments  
 # /* impgen.c starts here */  
 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.  
 #  
 #  This file is part of GNU libtool.  
 #  
 #  This program is free software; you can redistribute it and/or modify  
 #  it under the terms of the GNU General Public License as published by  
 #  the Free Software Foundation; either version 2 of the License, or  
 #  (at your option) any later version.  
 #  
 #  This program is distributed in the hope that it will be useful,  
 #  but WITHOUT ANY WARRANTY; without even the implied warranty of  
 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 #  GNU General Public License for more details.  
 #  
 #  You should have received a copy of the GNU General Public License  
 #  along with this program; if not, write to the Free Software  
 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 #  */  
 #  
 # #include <stdio.h>            /* for printf() */  
 # #include <unistd.h>           /* for open(), lseek(), read() */  
 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */  
 # #include <string.h>           /* for strdup() */  
 #  
 # /* O_BINARY isn't required (or even defined sometimes) under Unix */  
 # #ifndef O_BINARY  
 # #define O_BINARY 0  
 # #endif  
 #  
 # static unsigned int  
 # pe_get16 (fd, offset)  
 #      int fd;  
 #      int offset;  
 # {  
 #   unsigned char b[2];  
 #   lseek (fd, offset, SEEK_SET);  
 #   read (fd, b, 2);  
 #   return b[0] + (b[1]<<8);  
 # }  
 #  
 # static unsigned int  
 # pe_get32 (fd, offset)  
 #     int fd;  
 #     int offset;  
 # {  
 #   unsigned char b[4];  
 #   lseek (fd, offset, SEEK_SET);  
 #   read (fd, b, 4);  
 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);  
 # }  
 #  
 # static unsigned int  
 # pe_as32 (ptr)  
 #      void *ptr;  
 # {  
 #   unsigned char *b = ptr;  
 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);  
 # }  
 #  
 # int  
 # main (argc, argv)  
 #     int argc;  
 #     char *argv[];  
 # {  
 #     int dll;  
 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;  
 #     unsigned long export_rva, export_size, nsections, secptr, expptr;  
 #     unsigned long name_rvas, nexp;  
 #     unsigned char *expdata, *erva;  
 #     char *filename, *dll_name;  
 #  
 #     filename = argv[1];  
 #  
 #     dll = open(filename, O_RDONLY|O_BINARY);  
 #     if (dll < 1)  
 #       return 1;  
 #  
 #     dll_name = filename;  
 #  
 #     for (i=0; filename[i]; i++)  
 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')  
 #           dll_name = filename + i +1;  
 #  
 #     pe_header_offset = pe_get32 (dll, 0x3c);  
 #     opthdr_ofs = pe_header_offset + 4 + 20;  
 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);  
 #  
 #     if (num_entries < 1) /* no exports */  
 #       return 1;  
 #  
 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);  
 #     export_size = pe_get32 (dll, opthdr_ofs + 100);  
 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);  
 #     secptr = (pe_header_offset + 4 + 20 +  
 #             pe_get16 (dll, pe_header_offset + 4 + 16));  
 #  
 #     expptr = 0;  
 #     for (i = 0; i < nsections; i++)  
 #     {  
 #       char sname[8];  
 #       unsigned long secptr1 = secptr + 40 * i;  
 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);  
 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);  
 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);  
 #       lseek(dll, secptr1, SEEK_SET);  
 #       read(dll, sname, 8);  
 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)  
 #       {  
 #           expptr = fptr + (export_rva - vaddr);  
 #           if (export_rva + export_size > vaddr + vsize)  
 #               export_size = vsize - (export_rva - vaddr);  
 #           break;  
 #       }  
 #     }  
 #  
 #     expdata = (unsigned char*)malloc(export_size);  
 #     lseek (dll, expptr, SEEK_SET);  
 #     read (dll, expdata, export_size);  
 #     erva = expdata - export_rva;  
 #  
 #     nexp = pe_as32 (expdata+24);  
 #     name_rvas = pe_as32 (expdata+32);  
 #  
 #     printf ("EXPORTS\n");  
 #     for (i = 0; i<nexp; i++)  
 #     {  
 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);  
 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);  
 #     }  
 #  
 #     return 0;  
 # }  
 # /* impgen.c ends here */  
1684    
 EOF  
     ;;  
   esac  
   
   # We use sed instead of cat because bash on DJGPP gets confused if  
   # if finds mixed CR/LF and LF-only lines.  Since sed operates in  
   # text mode, it properly converts lines to CR/LF.  This bash problem  
   # is reportedly fixed, but why not run on old versions too?  
   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)  
1685    
1686    mv -f "${ofile}T" "$ofile" || \  # AC_LIBTOOL_DLOPEN
1687      (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")  # -----------------
1688    chmod +x "$ofile"  # enable checks for dlopen support
1689  fi  AC_DEFUN([AC_LIBTOOL_DLOPEN],
1690     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1691    ])# AC_LIBTOOL_DLOPEN
1692    
 ])# _LT_AC_LTCONFIG_HACK  
1693    
1694  # AC_LIBTOOL_DLOPEN - enable checks for dlopen support  # AC_LIBTOOL_WIN32_DLL
1695  AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])  # --------------------
1696    # declare package support for building win32 dll's
1697    AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1698    [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1699    ])# AC_LIBTOOL_WIN32_DLL
1700    
 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's  
 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])  
1701    
1702  # AC_ENABLE_SHARED - implement the --enable-shared flag  # AC_ENABLE_SHARED([DEFAULT])
1703  # Usage: AC_ENABLE_SHARED[(DEFAULT)]  # ---------------------------
1704  #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to  # implement the --enable-shared flag
1705  #   `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1706  AC_DEFUN([AC_ENABLE_SHARED],  AC_DEFUN([AC_ENABLE_SHARED],
1707  [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl  [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1708  AC_ARG_ENABLE(shared,  AC_ARG_ENABLE([shared],
1709  changequote(<<, >>)dnl      [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1710  <<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],          [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1711  changequote([, ])dnl      [p=${PACKAGE-default}
1712  [p=${PACKAGE-default}      case $enableval in
1713  case $enableval in      yes) enable_shared=yes ;;
1714  yes) enable_shared=yes ;;      no) enable_shared=no ;;
1715  no) enable_shared=no ;;      *)
1716  *)        enable_shared=no
1717    enable_shared=no        # Look at the argument we got.  We use all the common list separators.
1718    # Look at the argument we got.  We use all the common list separators.        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1719    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"        for pkg in $enableval; do
1720    for pkg in $enableval; do          IFS="$lt_save_ifs"
1721      if test "X$pkg" = "X$p"; then          if test "X$pkg" = "X$p"; then
1722        enable_shared=yes            enable_shared=yes
1723      fi          fi
1724    done        done
1725    IFS="$ac_save_ifs"        IFS="$lt_save_ifs"
1726    ;;        ;;
1727  esac],      esac],
1728  enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl      [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1729  ])  ])# AC_ENABLE_SHARED
1730    
1731  # AC_DISABLE_SHARED - set the default shared flag to --disable-shared  
1732    # AC_DISABLE_SHARED
1733    # -----------------
1734    #- set the default shared flag to --disable-shared
1735  AC_DEFUN([AC_DISABLE_SHARED],  AC_DEFUN([AC_DISABLE_SHARED],
1736  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1737  AC_ENABLE_SHARED(no)])  AC_ENABLE_SHARED(no)
1738    ])# AC_DISABLE_SHARED
1739    
1740    
1741  # AC_ENABLE_STATIC - implement the --enable-static flag  # AC_ENABLE_STATIC([DEFAULT])
1742  # Usage: AC_ENABLE_STATIC[(DEFAULT)]  # ---------------------------
1743  #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to  # implement the --enable-static flag
1744  #   `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1745  AC_DEFUN([AC_ENABLE_STATIC],  AC_DEFUN([AC_ENABLE_STATIC],
1746  [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl  [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1747  AC_ARG_ENABLE(static,  AC_ARG_ENABLE([static],
1748  changequote(<<, >>)dnl      [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1749  <<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],          [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1750  changequote([, ])dnl      [p=${PACKAGE-default}
1751  [p=${PACKAGE-default}      case $enableval in
1752  case $enableval in      yes) enable_static=yes ;;
1753  yes) enable_static=yes ;;      no) enable_static=no ;;
1754  no) enable_static=no ;;      *)
1755  *)       enable_static=no
1756    enable_static=no        # Look at the argument we got.  We use all the common list separators.
1757    # Look at the argument we got.  We use all the common list separators.        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1758    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"        for pkg in $enableval; do
1759    for pkg in $enableval; do          IFS="$lt_save_ifs"
1760      if test "X$pkg" = "X$p"; then          if test "X$pkg" = "X$p"; then
1761        enable_static=yes            enable_static=yes
1762      fi          fi
1763    done        done
1764    IFS="$ac_save_ifs"        IFS="$lt_save_ifs"
1765    ;;        ;;
1766  esac],      esac],
1767  enable_static=AC_ENABLE_STATIC_DEFAULT)dnl      [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1768  ])  ])# AC_ENABLE_STATIC
1769    
1770    
1771  # AC_DISABLE_STATIC - set the default static flag to --disable-static  # AC_DISABLE_STATIC
1772    # -----------------
1773    # set the default static flag to --disable-static
1774  AC_DEFUN([AC_DISABLE_STATIC],  AC_DEFUN([AC_DISABLE_STATIC],
1775  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1776  AC_ENABLE_STATIC(no)])  AC_ENABLE_STATIC(no)
1777    ])# AC_DISABLE_STATIC
1778    
1779    
1780  # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag  # AC_ENABLE_FAST_INSTALL([DEFAULT])
1781  # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]  # ---------------------------------
1782  #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to  # implement the --enable-fast-install flag
1783  #   `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1784  AC_DEFUN([AC_ENABLE_FAST_INSTALL],  AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1785  [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl  [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1786  AC_ARG_ENABLE(fast-install,  AC_ARG_ENABLE([fast-install],
1787  changequote(<<, >>)dnl      [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1788  <<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],      [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1789  changequote([, ])dnl      [p=${PACKAGE-default}
1790  [p=${PACKAGE-default}      case $enableval in
1791  case $enableval in      yes) enable_fast_install=yes ;;
1792  yes) enable_fast_install=yes ;;      no) enable_fast_install=no ;;
1793  no) enable_fast_install=no ;;      *)
1794  *)        enable_fast_install=no
1795    enable_fast_install=no        # Look at the argument we got.  We use all the common list separators.
1796    # Look at the argument we got.  We use all the common list separators.        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1797    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"        for pkg in $enableval; do
1798    for pkg in $enableval; do          IFS="$lt_save_ifs"
1799      if test "X$pkg" = "X$p"; then          if test "X$pkg" = "X$p"; then
1800        enable_fast_install=yes            enable_fast_install=yes
1801      fi          fi
1802    done        done
1803    IFS="$ac_save_ifs"        IFS="$lt_save_ifs"
1804    ;;        ;;
1805  esac],      esac],
1806  enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl      [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
1807  ])  ])# AC_ENABLE_FAST_INSTALL
1808    
1809  # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install  
1810    # AC_DISABLE_FAST_INSTALL
1811    # -----------------------
1812    # set the default to --disable-fast-install
1813  AC_DEFUN([AC_DISABLE_FAST_INSTALL],  AC_DEFUN([AC_DISABLE_FAST_INSTALL],
1814  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1815  AC_ENABLE_FAST_INSTALL(no)])  AC_ENABLE_FAST_INSTALL(no)
1816    ])# AC_DISABLE_FAST_INSTALL
1817    
1818    
1819  # AC_LIBTOOL_PICMODE - implement the --with-pic flag  # AC_LIBTOOL_PICMODE([MODE])
1820  # Usage: AC_LIBTOOL_PICMODE[(MODE)]  # --------------------------
1821  #   Where MODE is either `yes' or `no'.  If omitted, it defaults to  # implement the --with-pic flag
1822  #   `both'.  # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
1823  AC_DEFUN([AC_LIBTOOL_PICMODE],  AC_DEFUN([AC_LIBTOOL_PICMODE],
1824  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1825  pic_mode=ifelse($#,1,$1,default)])  pic_mode=ifelse($#,1,$1,default)
1826    ])# AC_LIBTOOL_PICMODE
1827    
1828    
1829    # AC_PROG_EGREP
1830    # -------------
1831    # This is predefined starting with Autoconf 2.54, so this conditional
1832    # definition can be removed once we require Autoconf 2.54 or later.
1833    m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1834    [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
1835       [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1836        then ac_cv_prog_egrep='grep -E'
1837        else ac_cv_prog_egrep='egrep'
1838        fi])
1839     EGREP=$ac_cv_prog_egrep
1840     AC_SUBST([EGREP])
1841    ])])
1842    
1843    
1844  # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library  # AC_PATH_TOOL_PREFIX
1845    # -------------------
1846    # find a file program which can recognise shared library
1847  AC_DEFUN([AC_PATH_TOOL_PREFIX],  AC_DEFUN([AC_PATH_TOOL_PREFIX],
1848  [AC_MSG_CHECKING([for $1])  [AC_REQUIRE([AC_PROG_EGREP])dnl
1849    AC_MSG_CHECKING([for $1])
1850  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1851  [case $MAGIC_CMD in  [case $MAGIC_CMD in
1852    /*)  [[\\/*] |  ?:[\\/]*])
1853    lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.    lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1854    ;;    ;;
1855    ?:/*)  *)
1856    lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.    lt_save_MAGIC_CMD="$MAGIC_CMD"
1857    ;;    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   *)  
   ac_save_MAGIC_CMD="$MAGIC_CMD"  
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1858  dnl $ac_dummy forces splitting on constant user-supplied paths.  dnl $ac_dummy forces splitting on constant user-supplied paths.
1859  dnl POSIX.2 word splitting is done only on the output of word expansions,  dnl POSIX.2 word splitting is done only on the output of word expansions,
1860  dnl not every word.  This closes a longstanding sh security hole.  dnl not every word.  This closes a longstanding sh security hole.
1861    ac_dummy="ifelse([$2], , $PATH, [$2])"    ac_dummy="ifelse([$2], , $PATH, [$2])"
1862    for ac_dir in $ac_dummy; do    for ac_dir in $ac_dummy; do
1863        IFS="$lt_save_ifs"
1864      test -z "$ac_dir" && ac_dir=.      test -z "$ac_dir" && ac_dir=.
1865      if test -f $ac_dir/$1; then      if test -f $ac_dir/$1; then
1866        lt_cv_path_MAGIC_CMD="$ac_dir/$1"        lt_cv_path_MAGIC_CMD="$ac_dir/$1"
# Line 2899  dnl not every word.  This closes a longs Line 1870  dnl not every word.  This closes a longs
1870            file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"            file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1871            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1872            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1873              egrep "$file_magic_regex" > /dev/null; then              $EGREP "$file_magic_regex" > /dev/null; then
1874              :              :
1875            else            else
1876              cat <<EOF 1>&2              cat <<EOF 1>&2
# Line 2920  EOF Line 1891  EOF
1891        break        break
1892      fi      fi
1893    done    done
1894    IFS="$ac_save_ifs"    IFS="$lt_save_ifs"
1895    MAGIC_CMD="$ac_save_MAGIC_CMD"    MAGIC_CMD="$lt_save_MAGIC_CMD"
1896    ;;    ;;
1897  esac])  esac])
1898  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
# Line 2930  if test -n "$MAGIC_CMD"; then Line 1901  if test -n "$MAGIC_CMD"; then
1901  else  else
1902    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
1903  fi  fi
1904  ])  ])# AC_PATH_TOOL_PREFIX
1905    
1906    
1907  # AC_PATH_MAGIC - find a file program which can recognise a shared library  # AC_PATH_MAGIC
1908    # -------------
1909    # find a file program which can recognise a shared library
1910  AC_DEFUN([AC_PATH_MAGIC],  AC_DEFUN([AC_PATH_MAGIC],
1911  [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl  [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)  
1912  if test -z "$lt_cv_path_MAGIC_CMD"; then  if test -z "$lt_cv_path_MAGIC_CMD"; then
1913    if test -n "$ac_tool_prefix"; then    if test -n "$ac_tool_prefix"; then
1914      AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)      AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
1915    else    else
1916      MAGIC_CMD=:      MAGIC_CMD=:
1917    fi    fi
1918  fi  fi
1919  ])  ])# AC_PATH_MAGIC
1920    
1921    
1922  # AC_PROG_LD - find the path to the GNU or non-GNU linker  # AC_PROG_LD
1923    # ----------
1924    # find the path to the GNU or non-GNU linker
1925  AC_DEFUN([AC_PROG_LD],  AC_DEFUN([AC_PROG_LD],
1926  [AC_ARG_WITH(gnu-ld,  [AC_ARG_WITH([gnu-ld],
1927  [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],      [AC_HELP_STRING([--with-gnu-ld],
1928  test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)          [assume the C compiler uses GNU ld @<:@default=no@:>@])],
1929        [test "$withval" = no || with_gnu_ld=yes],
1930        [with_gnu_ld=no])
1931    AC_REQUIRE([LT_AC_PROG_SED])dnl
1932  AC_REQUIRE([AC_PROG_CC])dnl  AC_REQUIRE([AC_PROG_CC])dnl
1933  AC_REQUIRE([AC_CANONICAL_HOST])dnl  AC_REQUIRE([AC_CANONICAL_HOST])dnl
1934  AC_REQUIRE([AC_CANONICAL_BUILD])dnl  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1935  ac_prog=ld  ac_prog=ld
1936  if test "$GCC" = yes; then  if test "$GCC" = yes; then
1937    # Check if gcc -print-prog-name=ld gives a path.    # Check if gcc -print-prog-name=ld gives a path.
1938    AC_MSG_CHECKING([for ld used by GCC])    AC_MSG_CHECKING([for ld used by $CC])
1939    case $host in    case $host in
1940    *-*-mingw*)    *-*-mingw*)
1941      # gcc leaves a trailing carriage return which upsets mingw      # gcc leaves a trailing carriage return which upsets mingw
# Line 2968  if test "$GCC" = yes; then Line 1945  if test "$GCC" = yes; then
1945    esac    esac
1946    case $ac_prog in    case $ac_prog in
1947      # Accept absolute paths.      # Accept absolute paths.
1948      [[\\/]* | [A-Za-z]:[\\/]*)]      [[\\/]]* | ?:[[\\/]]*)
1949        [re_direlt='/[^/][^/]*/\.\./']        re_direlt='/[[^/]][[^/]]*/\.\./'
1950        # Canonicalize the path of ld        # Canonicalize the path of ld
1951        ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`        ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1952        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1953          ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`          ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1954        done        done
1955        test -z "$LD" && LD="$ac_prog"        test -z "$LD" && LD="$ac_prog"
1956        ;;        ;;
# Line 2993  else Line 1970  else
1970  fi  fi
1971  AC_CACHE_VAL(lt_cv_path_LD,  AC_CACHE_VAL(lt_cv_path_LD,
1972  [if test -z "$LD"; then  [if test -z "$LD"; then
1973    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1974    for ac_dir in $PATH; do    for ac_dir in $PATH; do
1975        IFS="$lt_save_ifs"
1976      test -z "$ac_dir" && ac_dir=.      test -z "$ac_dir" && ac_dir=.
1977      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1978        lt_cv_path_LD="$ac_dir/$ac_prog"        lt_cv_path_LD="$ac_dir/$ac_prog"
1979        # Check to see if the program is GNU ld.  I'd rather use --version,        # Check to see if the program is GNU ld.  I'd rather use --version,
1980        # but apparently some GNU ld's only accept -v.        # but apparently some GNU ld's only accept -v.
1981        # Break only if it was the GNU/non-GNU ld that we prefer.        # Break only if it was the GNU/non-GNU ld that we prefer.
1982        if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1983          *GNU* | *'with BFD'*)
1984          test "$with_gnu_ld" != no && break          test "$with_gnu_ld" != no && break
1985        else          ;;
1986          *)
1987          test "$with_gnu_ld" != yes && break          test "$with_gnu_ld" != yes && break
1988        fi          ;;
1989          esac
1990      fi      fi
1991    done    done
1992    IFS="$ac_save_ifs"    IFS="$lt_save_ifs"
1993  else  else
1994    lt_cv_path_LD="$LD" # Let the user override the test with a path.    lt_cv_path_LD="$LD" # Let the user override the test with a path.
1995  fi])  fi])
# Line 3020  else Line 2001  else
2001  fi  fi
2002  test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])  test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2003  AC_PROG_LD_GNU  AC_PROG_LD_GNU
2004  ])  ])# AC_PROG_LD
2005    
2006  # AC_PROG_LD_GNU -  
2007    # AC_PROG_LD_GNU
2008    # --------------
2009  AC_DEFUN([AC_PROG_LD_GNU],  AC_DEFUN([AC_PROG_LD_GNU],
2010  [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,  [AC_REQUIRE([AC_PROG_EGREP])dnl
2011    AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2012  [# I'd rather use --version here, but apparently some GNU ld's only accept -v.  [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2013  if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then  case `"$LD" -v 2>&1 </dev/null` in
2014    *GNU* | *'with BFD'*)
2015    lt_cv_prog_gnu_ld=yes    lt_cv_prog_gnu_ld=yes
2016  else    ;;
2017    *)
2018    lt_cv_prog_gnu_ld=no    lt_cv_prog_gnu_ld=no
2019  fi])    ;;
2020    esac])
2021  with_gnu_ld=$lt_cv_prog_gnu_ld  with_gnu_ld=$lt_cv_prog_gnu_ld
2022  ])  ])# AC_PROG_LD_GNU
2023    
2024    
2025  # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker  # AC_PROG_LD_RELOAD_FLAG
2026    # ----------------------
2027    # find reload flag for linker
2028  #   -- PORTME Some linkers may need a different reload flag.  #   -- PORTME Some linkers may need a different reload flag.
2029  AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],  AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2030  [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,  [AC_CACHE_CHECK([for $LD option to reload object files],
2031  [lt_cv_ld_reload_flag='-r'])    lt_cv_ld_reload_flag,
2032      [lt_cv_ld_reload_flag='-r'])
2033  reload_flag=$lt_cv_ld_reload_flag  reload_flag=$lt_cv_ld_reload_flag
2034  test -n "$reload_flag" && reload_flag=" $reload_flag"  case $reload_flag in
2035  ])  "" | " "*) ;;
2036    *) reload_flag=" $reload_flag" ;;
2037    esac
2038    reload_cmds='$LD$reload_flag -o $output$reload_objs'
2039    ])# AC_PROG_LD_RELOAD_FLAG
2040    
2041  # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies  
2042    # AC_DEPLIBS_CHECK_METHOD
2043    # -----------------------
2044    # how to check for library dependencies
2045  #  -- PORTME fill in with the dynamic library characteristics  #  -- PORTME fill in with the dynamic library characteristics
2046  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2047  [AC_CACHE_CHECK([how to recognise dependant libraries],  [AC_CACHE_CHECK([how to recognise dependent libraries],
2048  lt_cv_deplibs_check_method,  lt_cv_deplibs_check_method,
2049  [lt_cv_file_magic_cmd='$MAGIC_CMD'  [lt_cv_file_magic_cmd='$MAGIC_CMD'
2050  lt_cv_file_magic_test_file=  lt_cv_file_magic_test_file=
# Line 3057  lt_cv_deplibs_check_method='unknown' Line 2055  lt_cv_deplibs_check_method='unknown'
2055  # `unknown' -- same as none, but documents that we really don't know.  # `unknown' -- same as none, but documents that we really don't know.
2056  # 'pass_all' -- all dependencies passed with no checks.  # 'pass_all' -- all dependencies passed with no checks.
2057  # 'test_compile' -- check by making test program.  # 'test_compile' -- check by making test program.
2058  # ['file_magic [regex]'] -- check by looking for files in library path  # 'file_magic [[regex]]' -- check by looking for files in library path
2059  # which responds to the $file_magic_cmd with a given egrep regex.  # which responds to the $file_magic_cmd with a given extended regex.
2060  # If you have `file' or equivalent on your system and you're not sure  # If you have `file' or equivalent on your system and you're not sure
2061  # whether `pass_all' will *always* work, you probably want this one.  # whether `pass_all' will *always* work, you probably want this one.
2062    
# Line 3072  beos*) Line 2070  beos*)
2070    ;;    ;;
2071    
2072  bsdi4*)  bsdi4*)
2073    [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2074    lt_cv_file_magic_cmd='/usr/bin/file -L'    lt_cv_file_magic_cmd='/usr/bin/file -L'
2075    lt_cv_file_magic_test_file=/shlib/libc.so    lt_cv_file_magic_test_file=/shlib/libc.so
2076    ;;    ;;
2077    
2078  cygwin* | mingw* | pw32*)  cygwin* | mingw* | pw32*)
2079    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'    # win32_libid is a shell function defined in ltmain.sh
2080    lt_cv_file_magic_cmd='$OBJDUMP -f'    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2081      lt_cv_file_magic_cmd='win32_libid'
2082    ;;    ;;
2083    
2084  darwin* | rhapsody*)  darwin* | rhapsody*)
2085      # this will be overwritten by pass_all, but leave it in just in case
2086    lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'    lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2087    lt_cv_file_magic_cmd='/usr/bin/file -L'    lt_cv_file_magic_cmd='/usr/bin/file -L'
2088    case "$host_os" in    case "$host_os" in
2089    rhapsody* | darwin1.[012])    rhapsody* | darwin1.[[012]])
2090      lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`      lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2091      ;;      ;;
2092    *) # Darwin 1.3 on    *) # Darwin 1.3 on
2093      lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'      lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2094      ;;      ;;
2095    esac    esac
2096      lt_cv_deplibs_check_method=pass_all
2097    ;;    ;;
2098    
2099  freebsd*)  freebsd*)
# Line 3101  freebsd*) Line 2102  freebsd*)
2102      i*86 )      i*86 )
2103        # Not sure whether the presence of OpenBSD here was a mistake.        # Not sure whether the presence of OpenBSD here was a mistake.
2104        # Let's accept both of them until this is cleared up.        # Let's accept both of them until this is cleared up.
2105        [lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']        lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2106        lt_cv_file_magic_cmd=/usr/bin/file        lt_cv_file_magic_cmd=/usr/bin/file
2107        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2108        ;;        ;;
# Line 3115  gnu*) Line 2116  gnu*)
2116    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2117    ;;    ;;
2118    
2119  hpux10.20*|hpux11*)  hpux10.20* | hpux11*)
   [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']  
2120    lt_cv_file_magic_cmd=/usr/bin/file    lt_cv_file_magic_cmd=/usr/bin/file
2121    lt_cv_file_magic_test_file=/usr/lib/libc.sl    case "$host_cpu" in
2122      ia64*)
2123        lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2124        lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2125        ;;
2126      hppa*64*)
2127        [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
2128        lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2129        ;;
2130      *)
2131        lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2132        lt_cv_file_magic_test_file=/usr/lib/libc.sl
2133        ;;
2134      esac
2135    ;;    ;;
2136    
2137  irix5* | irix6*)  irix5* | irix6* | nonstopux*)
2138    case $host_os in    case $host_os in
2139    irix5*)    irix5* | nonstopux*)
2140      # this will be overridden with pass_all, but let us keep it just in case      # this will be overridden with pass_all, but let us keep it just in case
2141      lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"      lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2142      ;;      ;;
# Line 3135  irix5* | irix6*) Line 2148  irix5* | irix6*)
2148      *) libmagic=never-match;;      *) libmagic=never-match;;
2149      esac      esac
2150      # this will be overridden with pass_all, but let us keep it just in case      # this will be overridden with pass_all, but let us keep it just in case
2151      [lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]      lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
2152      ;;      ;;
2153    esac    esac
2154    lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`    lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
# Line 3143  irix5* | irix6*) Line 2156  irix5* | irix6*)
2156    ;;    ;;
2157    
2158  # This must be Linux ELF.  # This must be Linux ELF.
2159  linux-gnu*)  linux*)
2160    case $host_cpu in    case $host_cpu in
2161    alpha* | i*86 | powerpc* | sparc* | ia64* )    alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2162      lt_cv_deplibs_check_method=pass_all ;;      lt_cv_deplibs_check_method=pass_all ;;
2163    *)    *)
2164      # glibc up to 2.1.1 does not perform some relocations on ARM      # glibc up to 2.1.1 does not perform some relocations on ARM
2165      [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;]      lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
2166    esac    esac
2167    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2168    ;;    ;;
2169    
2170  netbsd*)  netbsd*)
2171    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2172      [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2173    else    else
2174      [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2175    fi    fi
2176    ;;    ;;
2177    
2178  newos6*)  newos6*)
2179    [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2180    lt_cv_file_magic_cmd=/usr/bin/file    lt_cv_file_magic_cmd=/usr/bin/file
2181    lt_cv_file_magic_test_file=/usr/lib/libnls.so    lt_cv_file_magic_test_file=/usr/lib/libnls.so
2182    ;;    ;;
2183    
2184    nto-qnx)
2185      lt_cv_deplibs_check_method=unknown
2186      ;;
2187    
2188    openbsd*)
2189      lt_cv_file_magic_cmd=/usr/bin/file
2190      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2191      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2192        lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
2193      else
2194        lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2195      fi
2196      ;;
2197    
2198  osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
2199    # this will be overridden with pass_all, but let us keep it just in case    # this will be overridden with pass_all, but let us keep it just in case
2200    lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'    lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
# Line 3184  solaris*) Line 2211  solaris*)
2211    lt_cv_file_magic_test_file=/lib/libc.so    lt_cv_file_magic_test_file=/lib/libc.so
2212    ;;    ;;
2213    
 [sysv5uw[78]* | sysv4*uw2*)]  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
2214  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2215    case $host_vendor in    case $host_vendor in
2216    motorola)    motorola)
2217      [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]']      lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
2218      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2219      ;;      ;;
2220    ncr)    ncr)
# Line 3199  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 2222  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2222      ;;      ;;
2223    sequent)    sequent)
2224      lt_cv_file_magic_cmd='/bin/file'      lt_cv_file_magic_cmd='/bin/file'
2225      [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )']      lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2226      ;;      ;;
2227    sni)    sni)
2228      lt_cv_file_magic_cmd='/bin/file'      lt_cv_file_magic_cmd='/bin/file'
2229      [lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"]      lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2230      lt_cv_file_magic_test_file=/lib/libc.so      lt_cv_file_magic_test_file=/lib/libc.so
2231      ;;      ;;
2232      siemens)
2233        lt_cv_deplibs_check_method=pass_all
2234        ;;
2235    esac    esac
2236    ;;    ;;
2237    
2238    sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2239      lt_cv_deplibs_check_method=pass_all
2240      ;;
2241  esac  esac
2242  ])  ])
2243  file_magic_cmd=$lt_cv_file_magic_cmd  file_magic_cmd=$lt_cv_file_magic_cmd
2244  deplibs_check_method=$lt_cv_deplibs_check_method  deplibs_check_method=$lt_cv_deplibs_check_method
2245  ])  test -z "$deplibs_check_method" && deplibs_check_method=unknown
2246    ])# AC_DEPLIBS_CHECK_METHOD
2247    
2248    
2249  # AC_PROG_NM - find the path to a BSD-compatible name lister  # AC_PROG_NM
2250    # ----------
2251    # find the path to a BSD-compatible name lister
2252  AC_DEFUN([AC_PROG_NM],  AC_DEFUN([AC_PROG_NM],
2253  [AC_MSG_CHECKING([for BSD-compatible nm])  [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 AC_CACHE_VAL(lt_cv_path_NM,  
2254  [if test -n "$NM"; then  [if test -n "$NM"; then
2255    # Let the user override the test.    # Let the user override the test.
2256    lt_cv_path_NM="$NM"    lt_cv_path_NM="$NM"
2257  else  else
2258    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2259    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2260        IFS="$lt_save_ifs"
2261      test -z "$ac_dir" && ac_dir=.      test -z "$ac_dir" && ac_dir=.
2262      tmp_nm=$ac_dir/${ac_tool_prefix}nm      tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2263      if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2264        # Check to see if the nm accepts a BSD-compat flag.        # Check to see if the nm accepts a BSD-compat flag.
2265        # Adding the `sed 1q' prevents false positives on HP-UX, which says:        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2266        #   nm: unknown option "B" ignored        #   nm: unknown option "B" ignored
2267        # Tru64's nm complains that /dev/null is an invalid object file        # Tru64's nm complains that /dev/null is an invalid object file
2268        if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2269          */dev/null* | *'Invalid file or object type'*)
2270          lt_cv_path_NM="$tmp_nm -B"          lt_cv_path_NM="$tmp_nm -B"
2271          break          break
2272        elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then          ;;
2273          lt_cv_path_NM="$tmp_nm -p"        *)
2274          break          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2275        else          */dev/null*)
2276          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but            lt_cv_path_NM="$tmp_nm -p"
2277          continue # so that we can try to find one that supports BSD flags            break
2278        fi            ;;
2279            *)
2280              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2281              continue # so that we can try to find one that supports BSD flags
2282              ;;
2283            esac
2284          esac
2285      fi      fi
2286    done    done
2287    IFS="$ac_save_ifs"    IFS="$lt_save_ifs"
2288    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2289  fi])  fi])
2290  NM="$lt_cv_path_NM"  NM="$lt_cv_path_NM"
2291  AC_MSG_RESULT([$NM])  ])# AC_PROG_NM
2292  ])  
2293    
2294  # AC_CHECK_LIBM - check for math library  # AC_CHECK_LIBM
2295    # -------------
2296    # check for math library
2297  AC_DEFUN([AC_CHECK_LIBM],  AC_DEFUN([AC_CHECK_LIBM],
2298  [AC_REQUIRE([AC_CANONICAL_HOST])dnl  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2299  LIBM=  LIBM=
2300  case $host in  case $host in
2301  *-*-beos* | *-*-cygwin* | *-*-pw32*)  *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2302    # These system don't have libm    # These system don't have libm, or don't need it
2303    ;;    ;;
2304  *-ncr-sysv4.3*)  *-ncr-sysv4.3*)
2305    AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")    AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2306    AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")    AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2307    ;;    ;;
2308  *)  *)
2309    AC_CHECK_LIB(m, main, LIBM="-lm")    AC_CHECK_LIB(m, cos, LIBM="-lm")
2310    ;;    ;;
2311  esac  esac
2312  ])  ])# AC_CHECK_LIBM
2313    
2314    
2315  # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for  # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2316  # the libltdl convenience library and INCLTDL to the include flags for  # -----------------------------------
2317  # the libltdl header and adds --enable-ltdl-convenience to the  # sets LIBLTDL to the link flags for the libltdl convenience library and
2318  # configure arguments.  Note that LIBLTDL and INCLTDL are not  # LTDLINCL to the include flags for the libltdl header and adds
2319  # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not  # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
2320  # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed  # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2321  # with '${top_builddir}/' and INCLTDL will be prefixed with  # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
2322    # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2323  # '${top_srcdir}/' (note the single quotes!).  If your package is not  # '${top_srcdir}/' (note the single quotes!).  If your package is not
2324  # flat and you're not using automake, define top_builddir and  # flat and you're not using automake, define top_builddir and
2325  # top_srcdir appropriately in the Makefiles.  # top_srcdir appropriately in the Makefiles.
# Line 3287  AC_DEFUN([AC_LIBLTDL_CONVENIENCE], Line 2331  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2331        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2332    esac    esac
2333    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2334    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2335  ])    # For backwards non-gettext consistent compatibility...
2336      INCLTDL="$LTDLINCL"
2337  # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for  ])# AC_LIBLTDL_CONVENIENCE
2338  # the libltdl installable library and INCLTDL to the include flags for  
2339  # the libltdl header and adds --enable-ltdl-install to the configure  
2340  # arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is  # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2341  # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed  # -----------------------------------
2342  # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will  # sets LIBLTDL to the link flags for the libltdl installable library and
2343  # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed  # LTDLINCL to the include flags for the libltdl header and adds
2344  # with '${top_srcdir}/' (note the single quotes!).  If your package is  # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
2345  # not flat and you're not using automake, define top_builddir and  # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2346  # top_srcdir appropriately in the Makefiles.  # DIRECTORY is not provided and an installed libltdl is not found, it is
2347    # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
2348    # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2349    # quotes!).  If your package is not flat and you're not using automake,
2350    # define top_builddir and top_srcdir appropriately in the Makefiles.
2351  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2352  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2353  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2354    AC_CHECK_LIB(ltdl, main,    AC_CHECK_LIB(ltdl, lt_dlinit,
2355    [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],    [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2356    [if test x"$enable_ltdl_install" = xno; then    [if test x"$enable_ltdl_install" = xno; then
2357       AC_MSG_WARN([libltdl not installed, but installation disabled])       AC_MSG_WARN([libltdl not installed, but installation disabled])
# Line 3314  AC_DEFUN([AC_LIBLTDL_INSTALLABLE], Line 2362  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2362    if test x"$enable_ltdl_install" = x"yes"; then    if test x"$enable_ltdl_install" = x"yes"; then
2363      ac_configure_args="$ac_configure_args --enable-ltdl-install"      ac_configure_args="$ac_configure_args --enable-ltdl-install"
2364      LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la      LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2365      INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])      LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2366    else    else
2367      ac_configure_args="$ac_configure_args --enable-ltdl-install=no"      ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2368      LIBLTDL="-lltdl"      LIBLTDL="-lltdl"
2369      INCLTDL=      LTDLINCL=
2370    fi    fi
2371      # For backwards non-gettext consistent compatibility...
2372      INCLTDL="$LTDLINCL"
2373    ])# AC_LIBLTDL_INSTALLABLE
2374    
2375    
2376    # AC_LIBTOOL_CXX
2377    # --------------
2378    # enable support for C++ libraries
2379    AC_DEFUN([AC_LIBTOOL_CXX],
2380    [AC_REQUIRE([_LT_AC_LANG_CXX])
2381    ])# AC_LIBTOOL_CXX
2382    
2383    
2384    # _LT_AC_LANG_CXX
2385    # ---------------
2386    AC_DEFUN([_LT_AC_LANG_CXX],
2387    [AC_REQUIRE([AC_PROG_CXX])
2388    AC_REQUIRE([AC_PROG_CXXCPP])
2389    _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])
2390    ])# _LT_AC_LANG_CXX
2391    
2392    
2393    # AC_LIBTOOL_F77
2394    # --------------
2395    # enable support for Fortran 77 libraries
2396    AC_DEFUN([AC_LIBTOOL_F77],
2397    [AC_REQUIRE([_LT_AC_LANG_F77])
2398    ])# AC_LIBTOOL_F77
2399    
2400    
2401    # _LT_AC_LANG_F77
2402    # ---------------
2403    AC_DEFUN([_LT_AC_LANG_F77],
2404    [AC_REQUIRE([AC_PROG_F77])
2405    _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])
2406    ])# _LT_AC_LANG_F77
2407    
2408    
2409    # AC_LIBTOOL_GCJ
2410    # --------------
2411    # enable support for GCJ libraries
2412    AC_DEFUN([AC_LIBTOOL_GCJ],
2413    [AC_REQUIRE([_LT_AC_LANG_GCJ])
2414    ])# AC_LIBTOOL_GCJ
2415    
2416    
2417    # _LT_AC_LANG_GCJ
2418    # ---------------
2419    AC_DEFUN([_LT_AC_LANG_GCJ],
2420    [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2421      [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2422        [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2423          [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2424             [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2425               [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2426    _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])
2427    ])# _LT_AC_LANG_GCJ
2428    
2429    
2430    # AC_LIBTOOL_RC
2431    # --------------
2432    # enable support for Windows resource files
2433    AC_DEFUN([AC_LIBTOOL_RC],
2434    [AC_REQUIRE([LT_AC_PROG_RC])
2435    _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
2436    ])# AC_LIBTOOL_RC
2437    
2438    
2439    # AC_LIBTOOL_LANG_C_CONFIG
2440    # ------------------------
2441    # Ensure that the configuration vars for the C compiler are
2442    # suitably defined.  Those variables are subsequently used by
2443    # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2444    AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2445    AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2446    [lt_save_CC="$CC"
2447    AC_LANG_PUSH(C)
2448    
2449    # Source file extension for C test sources.
2450    ac_ext=c
2451    
2452    # Object file extension for compiled C test sources.
2453    objext=o
2454    _LT_AC_TAGVAR(objext, $1)=$objext
2455    
2456    # Code to be used in simple compile tests
2457    lt_simple_compile_test_code="int some_variable = 0;\n"
2458    
2459    # Code to be used in simple link tests
2460    lt_simple_link_test_code='int main(){return(0);}\n'
2461    
2462    _LT_AC_SYS_COMPILER
2463    
2464    #
2465    # Check for any special shared library compilation flags.
2466    #
2467    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2468    if test "$GCC" = no; then
2469      case $host_os in
2470      sco3.2v5*)
2471        _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2472        ;;
2473      esac
2474    fi
2475    if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2476      AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2477      if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[      ]]" >/dev/null; then :
2478      else
2479        AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2480        _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2481      fi
2482    fi
2483    
2484    
2485    #
2486    # Check to make sure the static flag actually works.
2487    #
2488    AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2489      _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2490      $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2491      [],
2492      [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2493    
2494    
2495    AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2496    AC_LIBTOOL_PROG_COMPILER_PIC($1)
2497    AC_LIBTOOL_PROG_CC_C_O($1)
2498    AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2499    AC_LIBTOOL_PROG_LD_SHLIBS($1)
2500    AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2501    AC_LIBTOOL_SYS_LIB_STRIP
2502    AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2503    AC_LIBTOOL_DLOPEN_SELF($1)
2504    
2505    # Report which librarie types wil actually be built
2506    AC_MSG_CHECKING([if libtool supports shared libraries])
2507    AC_MSG_RESULT([$can_build_shared])
2508    
2509    AC_MSG_CHECKING([whether to build shared libraries])
2510    test "$can_build_shared" = "no" && enable_shared=no
2511    
2512    # On AIX, shared libraries and static libraries use the same namespace, and
2513    # are all built from PIC.
2514    case "$host_os" in
2515    aix3*)
2516      test "$enable_shared" = yes && enable_static=no
2517      if test -n "$RANLIB"; then
2518        archive_cmds="$archive_cmds~\$RANLIB \$lib"
2519        postinstall_cmds='$RANLIB $lib'
2520      fi
2521      ;;
2522    
2523    aix4*)
2524      if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2525        test "$enable_shared" = yes && enable_static=no
2526      fi
2527      ;;
2528      darwin* | rhapsody*)
2529      if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
2530        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2531        case "$host_os" in
2532        rhapsody* | darwin1.[[012]])
2533          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2534          ;;
2535        *) # Darwin 1.3 on
2536          test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2537          ;;
2538        esac
2539        # FIXME: Relying on posixy $() will cause problems for
2540        #        cross-compilation, but unfortunately the echo tests do not
2541        #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
2542        #          `"' quotes if we put them in here... so don't!
2543                    output_verbose_link_cmd='echo'
2544        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2545        _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
2546        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2547                      _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}'
2548                      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2549        _LT_AC_TAGVAR(hardcode_direct, $1)=no
2550        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2551        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2552        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2553        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2554        fi
2555        ;;  
2556    esac
2557    AC_MSG_RESULT([$enable_shared])
2558    
2559    AC_MSG_CHECKING([whether to build static libraries])
2560    # Make sure either enable_shared or enable_static is yes.
2561    test "$enable_shared" = yes || enable_static=yes
2562    AC_MSG_RESULT([$enable_static])
2563    
2564    AC_LIBTOOL_CONFIG($1)
2565    
2566    AC_LANG_POP
2567    CC="$lt_save_CC"
2568    ])# AC_LIBTOOL_LANG_C_CONFIG
2569    
2570    
2571    # AC_LIBTOOL_LANG_CXX_CONFIG
2572    # --------------------------
2573    # Ensure that the configuration vars for the C compiler are
2574    # suitably defined.  Those variables are subsequently used by
2575    # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2576    AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2577    AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2578    [AC_LANG_PUSH(C++)
2579    AC_REQUIRE([AC_PROG_CXX])
2580    AC_REQUIRE([AC_PROG_CXXCPP])
2581    
2582    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2583    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2584    _LT_AC_TAGVAR(always_export_symbols, $1)=no
2585    _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2586    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2587    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2588    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2589    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2590    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2591    _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2592    _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2593    _LT_AC_TAGVAR(module_cmds, $1)=
2594    _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2595    _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2596    _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2597    _LT_AC_TAGVAR(no_undefined_flag, $1)=
2598    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2599    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2600    
2601    # Dependencies to place before and after the object being linked:
2602    _LT_AC_TAGVAR(predep_objects, $1)=
2603    _LT_AC_TAGVAR(postdep_objects, $1)=
2604    _LT_AC_TAGVAR(predeps, $1)=
2605    _LT_AC_TAGVAR(postdeps, $1)=
2606    _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2607    
2608    # Source file extension for C++ test sources.
2609    ac_ext=cc
2610    
2611    # Object file extension for compiled C++ test sources.
2612    objext=o
2613    _LT_AC_TAGVAR(objext, $1)=$objext
2614    
2615    # Code to be used in simple compile tests
2616    lt_simple_compile_test_code="int some_variable = 0;\n"
2617    
2618    # Code to be used in simple link tests
2619    lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2620    
2621    # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2622    _LT_AC_SYS_COMPILER
2623    
2624    # Allow CC to be a program name with arguments.
2625    lt_save_CC=$CC
2626    lt_save_LD=$LD
2627    lt_save_GCC=$GCC
2628    GCC=$GXX
2629    lt_save_with_gnu_ld=$with_gnu_ld
2630    lt_save_path_LD=$lt_cv_path_LD
2631    if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2632      lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2633    else
2634      unset lt_cv_prog_gnu_ld
2635    fi
2636    if test -n "${lt_cv_path_LDCXX+set}"; then
2637      lt_cv_path_LD=$lt_cv_path_LDCXX
2638    else
2639      unset lt_cv_path_LD
2640    fi
2641    test -z "${LDCXX+set}" || LD=$LDCXX
2642    CC=${CXX-"c++"}
2643    compiler=$CC
2644    _LT_AC_TAGVAR(compiler, $1)=$CC
2645    cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2646    
2647    # We don't want -fno-exception wen compiling C++ code, so set the
2648    # no_builtin_flag separately
2649    if test "$GXX" = yes; then
2650      _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2651    else
2652      _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2653    fi
2654    
2655    if test "$GXX" = yes; then
2656      # Set up default GNU C++ configuration
2657    
2658      AC_PROG_LD
2659    
2660      # Check if GNU C++ uses GNU ld as the underlying linker, since the
2661      # archiving commands below assume that GNU ld is being used.
2662      if test "$with_gnu_ld" = yes; then
2663        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2664        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2665    
2666        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2667        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2668    
2669        # If archive_cmds runs LD, not CC, wlarc should be empty
2670        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2671        #     investigate it a little bit more. (MM)
2672        wlarc='${wl}'
2673    
2674        # ancient GNU ld didn't support --whole-archive et. al.
2675        if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2676            grep 'no-whole-archive' > /dev/null; then
2677          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2678        else
2679          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2680        fi
2681      else
2682        with_gnu_ld=no
2683        wlarc=
2684    
2685        # A generic and very simple default shared library creation
2686        # command for GNU C++ for the case where it uses the native
2687        # linker, instead of GNU ld.  If possible, this setting should
2688        # overridden to take advantage of the native linker features on
2689        # the platform it is being used on.
2690        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2691      fi
2692    
2693      # Commands to make compiler produce verbose output that lists
2694      # what "hidden" libraries, object files and flags are used when
2695      # linking a shared library.
2696      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2697    
2698    else
2699      GXX=no
2700      with_gnu_ld=no
2701      wlarc=
2702    fi
2703    
2704    # PORTME: fill in a description of your system's C++ link characteristics
2705    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2706    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2707    case $host_os in
2708      aix3*)
2709        # FIXME: insert proper C++ library support
2710        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2711        ;;
2712      aix4* | aix5*)
2713        if test "$host_cpu" = ia64; then
2714          # On IA64, the linker does run time linking by default, so we don't
2715          # have to do anything special.
2716          aix_use_runtimelinking=no
2717          exp_sym_flag='-Bexport'
2718          no_entry_flag=""
2719        else
2720          aix_use_runtimelinking=no
2721    
2722          # Test if we are trying to use run time linking or normal
2723          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2724          # need to do runtime linking.
2725          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2726            for ld_flag in $LDFLAGS; do
2727              case $ld_flag in
2728              *-brtl*)
2729                aix_use_runtimelinking=yes
2730                break
2731                ;;
2732              esac
2733            done
2734          esac
2735    
2736          exp_sym_flag='-bexport'
2737          no_entry_flag='-bnoentry'
2738        fi
2739    
2740        # When large executables or shared objects are built, AIX ld can
2741        # have problems creating the table of contents.  If linking a library
2742        # or program results in "error TOC overflow" add -mminimal-toc to
2743        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
2744        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2745    
2746        _LT_AC_TAGVAR(archive_cmds, $1)=''
2747        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2748        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2749        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2750    
2751        if test "$GXX" = yes; then
2752          case $host_os in aix4.[012]|aix4.[012].*)
2753          # We only want to do this on AIX 4.2 and lower, the check
2754          # below for broken collect2 doesn't work under 4.3+
2755            collect2name=`${CC} -print-prog-name=collect2`
2756            if test -f "$collect2name" && \
2757               strings "$collect2name" | grep resolve_lib_name >/dev/null
2758            then
2759              # We have reworked collect2
2760              _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2761            else
2762              # We have old collect2
2763              _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2764              # It fails to find uninstalled libraries when the uninstalled
2765              # path is not listed in the libpath.  Setting hardcode_minus_L
2766              # to unsupported forces relinking
2767              _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2768              _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2769              _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2770            fi
2771          esac
2772          shared_flag='-shared'
2773        else
2774          # not using gcc
2775          if test "$host_cpu" = ia64; then
2776            # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2777            # chokes on -Wl,-G. The following line is correct:
2778            shared_flag='-G'
2779          else
2780            if test "$aix_use_runtimelinking" = yes; then
2781              shared_flag='${wl}-G'
2782            else
2783              shared_flag='${wl}-bM:SRE'
2784            fi
2785          fi
2786        fi
2787    
2788        # It seems that -bexpall does not export symbols beginning with
2789        # underscore (_), so it is better to generate a list of symbols to export.
2790        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2791        if test "$aix_use_runtimelinking" = yes; then
2792          # Warning - without using the other runtime loading flags (-brtl),
2793          # -berok will link without error, but may produce a broken library.
2794          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2795          # Determine the default libpath from the value encoded in an empty executable.
2796          _LT_AC_SYS_LIBPATH_AIX
2797          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2798    
2799          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2800         else
2801          if test "$host_cpu" = ia64; then
2802            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2803            _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2804            _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2805          else
2806            # Determine the default libpath from the value encoded in an empty executable.
2807            _LT_AC_SYS_LIBPATH_AIX
2808            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2809            # Warning - without using the other run time loading flags,
2810            # -berok will link without error, but may produce a broken library.
2811            _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2812            _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2813            # -bexpall does not export symbols beginning with underscore (_)
2814            _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2815            # Exported symbols can be pulled into shared objects from archives
2816            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2817            _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2818            # This is similar to how AIX traditionally builds it's shared libraries.
2819            _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2820          fi
2821        fi
2822        ;;
2823      chorus*)
2824        case $cc_basename in
2825          *)
2826            # FIXME: insert proper C++ library support
2827            _LT_AC_TAGVAR(ld_shlibs, $1)=no
2828            ;;
2829        esac
2830        ;;
2831    
2832      cygwin* | mingw* | pw32*)
2833        # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2834        # as there is no search path for DLLs.
2835        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2836        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2837        _LT_AC_TAGVAR(always_export_symbols, $1)=no
2838        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2839    
2840        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2841          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2842          # If the export-symbols file already is a .def file (1st line
2843          # is EXPORTS), use it as is; otherwise, prepend...
2844          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2845            cp $export_symbols $output_objdir/$soname.def;
2846          else
2847            echo EXPORTS > $output_objdir/$soname.def;
2848            cat $export_symbols >> $output_objdir/$soname.def;
2849          fi~
2850          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2851        else
2852          _LT_AC_TAGVAR(ld_shlibs, $1)=no
2853        fi
2854      ;;
2855    
2856      darwin* | rhapsody*)
2857       if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
2858        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2859        case "$host_os" in
2860        rhapsody* | darwin1.[[012]])
2861          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2862          ;;
2863        *) # Darwin 1.3 on
2864          test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2865          ;;
2866        esac
2867            lt_int_apple_cc_single_mod=no
2868            output_verbose_link_cmd='echo'
2869            if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2870              lt_int_apple_cc_single_mod=yes
2871            fi
2872            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2873              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2874            else
2875            _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'
2876          fi
2877          _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
2878    
2879        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2880          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2881            _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}'
2882          else
2883            _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}'
2884          fi
2885            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2886        _LT_AC_TAGVAR(hardcode_direct, $1)=no
2887        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2888        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2889        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2890        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2891       fi
2892        ;;
2893    
2894      dgux*)
2895        case $cc_basename in
2896          ec++)
2897            # FIXME: insert proper C++ library support
2898            _LT_AC_TAGVAR(ld_shlibs, $1)=no
2899            ;;
2900          ghcx)
2901            # Green Hills C++ Compiler
2902            # FIXME: insert proper C++ library support
2903            _LT_AC_TAGVAR(ld_shlibs, $1)=no
2904            ;;
2905          *)