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.3 by aono, Wed Jun 4 08:35:02 2003 UTC revision 1.4 by aonoto, Sat Sep 5 19:35:51 2009 UTC
# Line 13  Line 13 
13    
14  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15    
16  # serial 47 AC_PROG_LIBTOOL  # serial 52 AC_PROG_LIBTOOL
17    
18    
19  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
# Line 101  AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl Line 101  AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
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  AC_LIBTOOL_SYS_MAX_CMD_LEN  AC_LIBTOOL_SYS_MAX_CMD_LEN
105  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
106  AC_LIBTOOL_OBJDIR  AC_LIBTOOL_OBJDIR
# Line 123  esac Line 122  esac
122    
123  # Sed substitution that helps us do robust quoting.  It backslashifies  # Sed substitution that helps us do robust quoting.  It backslashifies
124  # metacharacters that are still active within double-quoted strings.  # metacharacters that are still active within double-quoted strings.
125  Xsed='sed -e s/^X//'  Xsed='sed -e 1s/^X//'
126  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
127    
128  # Same as above, but do not quote variable references.  # Same as above, but do not quote variable references.
# Line 143  rm="rm -f" Line 142  rm="rm -f"
142  default_ofile=libtool  default_ofile=libtool
143  can_build_shared=yes  can_build_shared=yes
144    
145  # All known linkers require a `.a' archive for static linking (except M$VC,  # All known linkers require a `.a' archive for static linking (except MSVC,
146  # which needs '.lib').  # which needs '.lib').
147  libext=a  libext=a
148  ltmain="$ac_aux_dir/ltmain.sh"  ltmain="$ac_aux_dir/ltmain.sh"
# Line 163  test -z "$AR_FLAGS" && AR_FLAGS=cru Line 162  test -z "$AR_FLAGS" && AR_FLAGS=cru
162  test -z "$AS" && AS=as  test -z "$AS" && AS=as
163  test -z "$CC" && CC=cc  test -z "$CC" && CC=cc
164  test -z "$LTCC" && LTCC=$CC  test -z "$LTCC" && LTCC=$CC
165    test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166  test -z "$DLLTOOL" && DLLTOOL=dlltool  test -z "$DLLTOOL" && DLLTOOL=dlltool
167  test -z "$LD" && LD=ld  test -z "$LD" && LD=ld
168  test -z "$LN_S" && LN_S="ln -s"  test -z "$LN_S" && LN_S="ln -s"
# Line 175  test -z "$STRIP" && STRIP=: Line 175  test -z "$STRIP" && STRIP=:
175  test -z "$ac_objext" && ac_objext=o  test -z "$ac_objext" && ac_objext=o
176    
177  # Determine commands to create old-style static archives.  # Determine commands to create old-style static archives.
178  old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'  old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
179  old_postinstall_cmds='chmod 644 $oldlib'  old_postinstall_cmds='chmod 644 $oldlib'
180  old_postuninstall_cmds=  old_postuninstall_cmds=
181    
182  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
183    case $host_os in    case $host_os in
184    openbsd*)    openbsd*)
185      old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186      ;;      ;;
187    *)    *)
188      old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189      ;;      ;;
190    esac    esac
191    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192  fi  fi
193    
194    _LT_CC_BASENAME([$compiler])
195    
196  # Only perform the check for file, if the check method requires it  # Only perform the check for file, if the check method requires it
197  case $deplibs_check_method in  case $deplibs_check_method in
198  file_magic*)  file_magic*)
# Line 200  file_magic*) Line 202  file_magic*)
202    ;;    ;;
203  esac  esac
204    
205    _LT_REQUIRED_DARWIN_CHECKS
206    
207  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
208  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
209  enable_win32_dll=yes, enable_win32_dll=no)  enable_win32_dll=yes, enable_win32_dll=no)
# Line 231  AC_DEFUN([_LT_AC_SYS_COMPILER], Line 235  AC_DEFUN([_LT_AC_SYS_COMPILER],
235  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
236  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
237    
238    # If no C compiler flags were specified, use CFLAGS.
239    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
240    
241  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
242  compiler=$CC  compiler=$CC
243  ])# _LT_AC_SYS_COMPILER  ])# _LT_AC_SYS_COMPILER
244    
245    
246    # _LT_CC_BASENAME(CC)
247    # -------------------
248    # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
249    AC_DEFUN([_LT_CC_BASENAME],
250    [for cc_temp in $1""; do
251      case $cc_temp in
252        compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
253        distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
254        \-*) ;;
255        *) break;;
256      esac
257    done
258    cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
259    ])
260    
261    
262    # _LT_COMPILER_BOILERPLATE
263    # ------------------------
264    # Check for compiler boilerplate output or warnings with
265    # the simple compiler test code.
266    AC_DEFUN([_LT_COMPILER_BOILERPLATE],
267    [AC_REQUIRE([LT_AC_PROG_SED])dnl
268    ac_outfile=conftest.$ac_objext
269    echo "$lt_simple_compile_test_code" >conftest.$ac_ext
270    eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
271    _lt_compiler_boilerplate=`cat conftest.err`
272    $rm conftest*
273    ])# _LT_COMPILER_BOILERPLATE
274    
275    
276    # _LT_LINKER_BOILERPLATE
277    # ----------------------
278    # Check for linker boilerplate output or warnings with
279    # the simple link test code.
280    AC_DEFUN([_LT_LINKER_BOILERPLATE],
281    [AC_REQUIRE([LT_AC_PROG_SED])dnl
282    ac_outfile=conftest.$ac_objext
283    echo "$lt_simple_link_test_code" >conftest.$ac_ext
284    eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
285    _lt_linker_boilerplate=`cat conftest.err`
286    $rm -r conftest*
287    ])# _LT_LINKER_BOILERPLATE
288    
289    # _LT_REQUIRED_DARWIN_CHECKS
290    # --------------------------
291    # Check for some things on darwin
292    AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
293      case $host_os in
294        rhapsody* | darwin*)
295        AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
296        AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
297    
298        AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
299          [lt_cv_apple_cc_single_mod=no
300          if test -z "${LT_MULTI_MODULE}"; then
301       # By default we will add the -single_module flag. You can override
302       # by either setting the environment variable LT_MULTI_MODULE
303       # non-empty at configure time, or by adding -multi_module to the
304       # link flags.
305       echo "int foo(void){return 1;}" > conftest.c
306       $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
307         -dynamiclib ${wl}-single_module conftest.c
308       if test -f libconftest.dylib; then
309         lt_cv_apple_cc_single_mod=yes
310         rm -rf libconftest.dylib*
311       fi
312       rm conftest.c
313          fi])
314        AC_CACHE_CHECK([for -exported_symbols_list linker flag],
315          [lt_cv_ld_exported_symbols_list],
316          [lt_cv_ld_exported_symbols_list=no
317          save_LDFLAGS=$LDFLAGS
318          echo "_main" > conftest.sym
319          LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
320          AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
321       [lt_cv_ld_exported_symbols_list=yes],
322       [lt_cv_ld_exported_symbols_list=no])
323       LDFLAGS="$save_LDFLAGS"
324        ])
325        case $host_os in
326        rhapsody* | darwin1.[[0123]])
327          _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
328        darwin1.*)
329         _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
330        darwin*)
331          # if running on 10.5 or later, the deployment target defaults
332          # to the OS version, if on x86, and 10.4, the deployment
333          # target defaults to 10.4. Don't you love it?
334          case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
335       10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
336         _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
337       10.[[012]]*)
338         _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
339       10.*)
340         _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
341          esac
342        ;;
343      esac
344        if test "$lt_cv_apple_cc_single_mod" = "yes"; then
345          _lt_dar_single_mod='$single_module'
346        fi
347        if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
348          _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
349        else
350          _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
351        fi
352        if test "$DSYMUTIL" != ":"; then
353          _lt_dsymutil="~$DSYMUTIL \$lib || :"
354        else
355          _lt_dsymutil=
356        fi
357        ;;
358      esac
359    ])
360    
361  # _LT_AC_SYS_LIBPATH_AIX  # _LT_AC_SYS_LIBPATH_AIX
362  # ----------------------  # ----------------------
363  # Links a minimal program and checks the executable  # Links a minimal program and checks the executable
# Line 245  compiler=$CC Line 367  compiler=$CC
367  # If we don't find anything, use the default library path according  # If we don't find anything, use the default library path according
368  # to the aix ld manual.  # to the aix ld manual.
369  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
370  [AC_LINK_IFELSE(AC_LANG_PROGRAM,[  [AC_REQUIRE([LT_AC_PROG_SED])dnl
371  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  AC_LINK_IFELSE(AC_LANG_PROGRAM,[
372  }'`  lt_aix_libpath_sed='
373        /Import File Strings/,/^$/ {
374            /^0/ {
375                s/^0  *\(.*\)$/\1/
376                p
377            }
378        }'
379    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
380  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
381  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; }  if test -z "$aix_libpath"; then
382  }'`; fi],[])    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
383    fi],[])
384  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
385  ])# _LT_AC_SYS_LIBPATH_AIX  ])# _LT_AC_SYS_LIBPATH_AIX
386    
# Line 308  fi Line 438  fi
438    
439  # The HP-UX ksh and POSIX shell print the target directory to stdout  # The HP-UX ksh and POSIX shell print the target directory to stdout
440  # if CDPATH is set.  # if CDPATH is set.
441  if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
442    
443  if test -z "$ECHO"; then  if test -z "$ECHO"; then
444  if test "X${echo_test_string+set}" != Xset; then  if test "X${echo_test_string+set}" != Xset; then
445  # find a string as large as possible, as long as the shell can cope with it  # find a string as large as possible, as long as the shell can cope with it
446    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
447      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
448      if (echo_test_string="`eval $cmd`") 2>/dev/null &&      if (echo_test_string=`eval $cmd`) 2>/dev/null &&
449         echo_test_string="`eval $cmd`" &&         echo_test_string=`eval $cmd` &&
450         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
451      then      then
452        break        break
# Line 481  ia64-*-hpux*) Line 611  ia64-*-hpux*)
611    rm -rf conftest*    rm -rf conftest*
612    ;;    ;;
613    
614  x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)  x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
615    s390*-*linux*|sparc*-*linux*)
616    # Find out which ABI we are using.    # Find out which ABI we are using.
617    echo 'int i;' > conftest.$ac_ext    echo 'int i;' > conftest.$ac_ext
618    if AC_TRY_EVAL(ac_compile); then    if AC_TRY_EVAL(ac_compile); then
619      case "`/usr/bin/file conftest.o`" in      case `/usr/bin/file conftest.o` in
620      *32-bit*)      *32-bit*)
621        case $host in        case $host in
622            x86_64-*kfreebsd*-gnu)
623              LD="${LD-ld} -m elf_i386_fbsd"
624              ;;
625          x86_64-*linux*)          x86_64-*linux*)
626            LD="${LD-ld} -m elf_i386"            LD="${LD-ld} -m elf_i386"
627            ;;            ;;
628          ppc64-*linux*)          ppc64-*linux*|powerpc64-*linux*)
629            LD="${LD-ld} -m elf32ppclinux"            LD="${LD-ld} -m elf32ppclinux"
630            ;;            ;;
631          s390x-*linux*)          s390x-*linux*)
# Line 504  x86_64-*linux*|ppc*-*linux*|powerpc*-*li Line 638  x86_64-*linux*|ppc*-*linux*|powerpc*-*li
638        ;;        ;;
639      *64-bit*)      *64-bit*)
640        case $host in        case $host in
641            x86_64-*kfreebsd*-gnu)
642              LD="${LD-ld} -m elf_x86_64_fbsd"
643              ;;
644          x86_64-*linux*)          x86_64-*linux*)
645            LD="${LD-ld} -m elf_x86_64"            LD="${LD-ld} -m elf_x86_64"
646            ;;            ;;
# Line 536  x86_64-*linux*|ppc*-*linux*|powerpc*-*li Line 673  x86_64-*linux*|ppc*-*linux*|powerpc*-*li
673      CFLAGS="$SAVE_CFLAGS"      CFLAGS="$SAVE_CFLAGS"
674    fi    fi
675    ;;    ;;
676    sparc*-*solaris*)
677      # Find out which ABI we are using.
678      echo 'int i;' > conftest.$ac_ext
679      if AC_TRY_EVAL(ac_compile); then
680        case `/usr/bin/file conftest.o` in
681        *64-bit*)
682          case $lt_cv_prog_gnu_ld in
683          yes*) LD="${LD-ld} -m elf64_sparc" ;;
684          *)
685            if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
686              LD="${LD-ld} -64"
687            fi
688            ;;
689          esac
690          ;;
691        esac
692      fi
693      rm -rf conftest*
694      ;;
695    
696  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
697  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
698    AC_CHECK_TOOL(DLLTOOL, dlltool, false)    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
# Line 555  need_locks="$enable_libtool_lock" Line 712  need_locks="$enable_libtool_lock"
712  # ----------------------------------------------------------------  # ----------------------------------------------------------------
713  # Check whether the given compiler option works  # Check whether the given compiler option works
714  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
715  [AC_CACHE_CHECK([$1], [$2],  [AC_REQUIRE([LT_AC_PROG_SED])
716    AC_CACHE_CHECK([$1], [$2],
717    [$2=no    [$2=no
718    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
719     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
720     lt_compiler_flag="$3"     lt_compiler_flag="$3"
721     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
722     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 566  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], Line 724  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
724     # with a dollar sign (not a hyphen), so the echo should work correctly.     # with a dollar sign (not a hyphen), so the echo should work correctly.
725     # The option is referenced via a variable to avoid confusing sed.     # The option is referenced via a variable to avoid confusing sed.
726     lt_compile=`echo "$ac_compile" | $SED \     lt_compile=`echo "$ac_compile" | $SED \
727     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
728     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
729     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
730     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
# Line 576  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], Line 734  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
734     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
735     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
736       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
737       # So say no if there are warnings       # So say no if there are warnings other than the usual output.
738       if test ! -s conftest.err; then       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
739         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
740         if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
741         $2=yes         $2=yes
742       fi       fi
743     fi     fi
# Line 597  fi Line 757  fi
757  # ------------------------------------------------------------  # ------------------------------------------------------------
758  # Check whether the given compiler option works  # Check whether the given compiler option works
759  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
760  [AC_CACHE_CHECK([$1], [$2],  [AC_REQUIRE([LT_AC_PROG_SED])dnl
761    AC_CACHE_CHECK([$1], [$2],
762    [$2=no    [$2=no
763     save_LDFLAGS="$LDFLAGS"     save_LDFLAGS="$LDFLAGS"
764     LDFLAGS="$LDFLAGS $3"     LDFLAGS="$LDFLAGS $3"
765     printf "$lt_simple_link_test_code" > conftest.$ac_ext     echo "$lt_simple_link_test_code" > conftest.$ac_ext
766     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
767       # The compiler can only warn and ignore the option if not recognized       # The linker can only warn and ignore the option if not recognized
768       # So say no if there are warnings       # So say no if there are warnings
769       if test -s conftest.err; then       if test -s conftest.err; then
770         # Append any errors to the config.log.         # Append any errors to the config.log.
771         cat conftest.err 1>&AS_MESSAGE_LOG_FD         cat conftest.err 1>&AS_MESSAGE_LOG_FD
772           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
773           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
774           if diff conftest.exp conftest.er2 >/dev/null; then
775             $2=yes
776           fi
777       else       else
778         $2=yes         $2=yes
779       fi       fi
780     fi     fi
781     $rm conftest*     $rm -r conftest*
782     LDFLAGS="$save_LDFLAGS"     LDFLAGS="$save_LDFLAGS"
783  ])  ])
784    
# Line 631  AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], Line 797  AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
797  AC_MSG_CHECKING([the maximum length of command line arguments])  AC_MSG_CHECKING([the maximum length of command line arguments])
798  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
799    i=0    i=0
800    testring="ABCD"    teststring="ABCD"
801    
802    case $build_os in    case $build_os in
803    msdosdjgpp*)    msdosdjgpp*)
# Line 660  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d Line 826  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
826      lt_cv_sys_max_cmd_len=8192;      lt_cv_sys_max_cmd_len=8192;
827      ;;      ;;
828    
829   *)    amigaos*)
830      # If test is not a shell built-in, we'll probably end up computing a      # On AmigaOS with pdksh, this test takes hours, literally.
831      # maximum length that is only half of the actual maximum length, but      # So we just punt and use a minimum line length of 8192.
832      # we can't tell.      lt_cv_sys_max_cmd_len=8192;
833      while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \      ;;
834                 = "XX$testring") >/dev/null 2>&1 &&  
835              new_result=`expr "X$testring" : ".*" 2>&1` &&    netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
836              lt_cv_sys_max_cmd_len=$new_result &&      # This has been around since 386BSD, at least.  Likely further.
837              test $i != 17 # 1/2 MB should be enough      if test -x /sbin/sysctl; then
838      do        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
839        i=`expr $i + 1`      elif test -x /usr/sbin/sysctl; then
840        testring=$testring$testring        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
841      done      else
842      testring=        lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
843      # Add a significant safety factor because C++ compilers can tack on massive      fi
844      # amounts of additional arguments before passing them to the linker.      # And add a safety zone
845      # It appears as though 1/2 is a usable value.      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
846      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
847        ;;
848    
849      interix*)
850        # We know the value 262144 and hardcode it with a safety zone (like BSD)
851        lt_cv_sys_max_cmd_len=196608
852        ;;
853    
854      osf*)
855        # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
856        # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
857        # nice to cause kernel panics so lets avoid the loop below.
858        # First set a reasonable default.
859        lt_cv_sys_max_cmd_len=16384
860        #
861        if test -x /sbin/sysconfig; then
862          case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
863            *1*) lt_cv_sys_max_cmd_len=-1 ;;
864          esac
865        fi
866        ;;
867      sco3.2v5*)
868        lt_cv_sys_max_cmd_len=102400
869        ;;
870      sysv5* | sco5v6* | sysv4.2uw2*)
871        kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
872        if test -n "$kargmax"; then
873          lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
874        else
875          lt_cv_sys_max_cmd_len=32768
876        fi
877        ;;
878      *)
879        lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
880        if test -n "$lt_cv_sys_max_cmd_len"; then
881          lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
882          lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
883        else
884          SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
885          while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
886                   = "XX$teststring") >/dev/null 2>&1 &&
887                  new_result=`expr "X$teststring" : ".*" 2>&1` &&
888                  lt_cv_sys_max_cmd_len=$new_result &&
889                  test $i != 17 # 1/2 MB should be enough
890          do
891            i=`expr $i + 1`
892            teststring=$teststring$teststring
893          done
894          teststring=
895          # Add a significant safety factor because C++ compilers can tack on massive
896          # amounts of additional arguments before passing them to the linker.
897          # It appears as though 1/2 is a usable value.
898          lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
899        fi
900      ;;      ;;
901    esac    esac
902  ])  ])
# Line 690  fi Line 909  fi
909    
910    
911  # _LT_AC_CHECK_DLFCN  # _LT_AC_CHECK_DLFCN
912  # --------------------  # ------------------
913  AC_DEFUN([_LT_AC_CHECK_DLFCN],  AC_DEFUN([_LT_AC_CHECK_DLFCN],
914  [AC_CHECK_HEADERS(dlfcn.h)dnl  [AC_CHECK_HEADERS(dlfcn.h)dnl
915  ])# _LT_AC_CHECK_DLFCN  ])# _LT_AC_CHECK_DLFCN
# Line 698  AC_DEFUN([_LT_AC_CHECK_DLFCN], Line 917  AC_DEFUN([_LT_AC_CHECK_DLFCN],
917    
918  # _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,
919  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
920  # ------------------------------------------------------------------  # ---------------------------------------------------------------------
921  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
922  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
923  if test "$cross_compiling" = yes; then :  if test "$cross_compiling" = yes; then :
# Line 764  int main () Line 983  int main ()
983        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
984        /* dlclose (self); */        /* dlclose (self); */
985      }      }
986      else
987        puts (dlerror ());
988    
989      exit (status);      exit (status);
990  }]  }]
991  EOF  EOF
992    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
993      (./conftest; exit; ) 2>/dev/null      (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
994      lt_status=$?      lt_status=$?
995      case x$lt_status in      case x$lt_status in
996        x$lt_dlno_uscore) $1 ;;        x$lt_dlno_uscore) $1 ;;
997        x$lt_dlneed_uscore) $2 ;;        x$lt_dlneed_uscore) $2 ;;
998        x$lt_unknown|x*) $3 ;;        x$lt_dlunknown|x*) $3 ;;
999      esac      esac
1000    else :    else :
1001      # compilation failed      # compilation failed
# Line 786  rm -fr conftest* Line 1007  rm -fr conftest*
1007    
1008    
1009  # AC_LIBTOOL_DLOPEN_SELF  # AC_LIBTOOL_DLOPEN_SELF
1010  # -------------------  # ----------------------
1011  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1012  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1013  if test "x$enable_dlopen" != xyes; then  if test "x$enable_dlopen" != xyes; then
# Line 823  else Line 1044  else
1044      lt_cv_dlopen_self=yes      lt_cv_dlopen_self=yes
1045      ])      ])
1046     ;;     ;;
1047        
1048    *)    *)
1049      AC_CHECK_FUNC([shl_load],      AC_CHECK_FUNC([shl_load],
1050            [lt_cv_dlopen="shl_load"],            [lt_cv_dlopen="shl_load"],
1051        [AC_CHECK_LIB([dld], [shl_load],        [AC_CHECK_LIB([dld], [shl_load],
1052              [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],              [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1053          [AC_CHECK_FUNC([dlopen],          [AC_CHECK_FUNC([dlopen],
1054                [lt_cv_dlopen="dlopen"],                [lt_cv_dlopen="dlopen"],
1055            [AC_CHECK_LIB([dl], [dlopen],            [AC_CHECK_LIB([dl], [dlopen],
# Line 836  else Line 1057  else
1057              [AC_CHECK_LIB([svld], [dlopen],              [AC_CHECK_LIB([svld], [dlopen],
1058                    [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],                    [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1059                [AC_CHECK_LIB([dld], [dld_link],                [AC_CHECK_LIB([dld], [dld_link],
1060                      [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])                      [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1061                ])                ])
1062              ])              ])
1063            ])            ])
# Line 857  else Line 1078  else
1078      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"
1079    
1080      save_LDFLAGS="$LDFLAGS"      save_LDFLAGS="$LDFLAGS"
1081      eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1082    
1083      save_LIBS="$LIBS"      save_LIBS="$LIBS"
1084      LIBS="$lt_cv_dlopen_libs $LIBS"      LIBS="$lt_cv_dlopen_libs $LIBS"
# Line 870  else Line 1091  else
1091      ])      ])
1092    
1093      if test "x$lt_cv_dlopen_self" = xyes; then      if test "x$lt_cv_dlopen_self" = xyes; then
1094        LDFLAGS="$LDFLAGS $link_static_flag"        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1095        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1096            lt_cv_dlopen_self_static, [dnl            lt_cv_dlopen_self_static, [dnl
1097            _LT_AC_TRY_DLOPEN_SELF(            _LT_AC_TRY_DLOPEN_SELF(
# Line 902  fi Line 1123  fi
1123  # ---------------------------------  # ---------------------------------
1124  # Check to see if options -c and -o are simultaneously supported by compiler  # Check to see if options -c and -o are simultaneously supported by compiler
1125  AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],  AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1126  [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl  [AC_REQUIRE([LT_AC_PROG_SED])dnl
1127    AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1128  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1129    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1130    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
# Line 910  AC_CACHE_CHECK([if $compiler supports -c Line 1132  AC_CACHE_CHECK([if $compiler supports -c
1132     mkdir conftest     mkdir conftest
1133     cd conftest     cd conftest
1134     mkdir out     mkdir out
1135     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   
    # 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 .  
1136    
1137     lt_compiler_flag="-o out/conftest2.$ac_objext"     lt_compiler_flag="-o out/conftest2.$ac_objext"
1138     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
# Line 925  AC_CACHE_CHECK([if $compiler supports -c Line 1140  AC_CACHE_CHECK([if $compiler supports -c
1140     # Note that $ac_compile itself does not contain backslashes and begins     # Note that $ac_compile itself does not contain backslashes and begins
1141     # with a dollar sign (not a hyphen), so the echo should work correctly.     # with a dollar sign (not a hyphen), so the echo should work correctly.
1142     lt_compile=`echo "$ac_compile" | $SED \     lt_compile=`echo "$ac_compile" | $SED \
1143     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1144     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1145     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
1146     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
# Line 937  AC_CACHE_CHECK([if $compiler supports -c Line 1152  AC_CACHE_CHECK([if $compiler supports -c
1152     then     then
1153       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
1154       # So say no if there are warnings       # So say no if there are warnings
1155       if test ! -s out/conftest.err; then       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1156         $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1157         if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1158         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1159       fi       fi
1160     fi     fi
1161     chmod u+w .     chmod u+w . 2>&AS_MESSAGE_LOG_FD
1162     $rm conftest* out/*     $rm conftest*
1163     rmdir out     # SGI C++ compiler will create directory out/ii_files/ for
1164       # template instantiation
1165       test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1166       $rm out/* && rmdir out
1167     cd ..     cd ..
1168     rmdir conftest     rmdir conftest
1169     $rm conftest*     $rm conftest*
# Line 1002  AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LI Line 1222  AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LI
1222  [AC_MSG_CHECKING([how to hardcode library paths into programs])  [AC_MSG_CHECKING([how to hardcode library paths into programs])
1223  _LT_AC_TAGVAR(hardcode_action, $1)=  _LT_AC_TAGVAR(hardcode_action, $1)=
1224  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1225     test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \     test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1226     test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then     test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1227    
1228    # We can hardcode non-existant directories.    # We can hardcode non-existant directories.
1229    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
# Line 1052  else Line 1272  else
1272     darwin*)     darwin*)
1273         if test -n "$STRIP" ; then         if test -n "$STRIP" ; then
1274           striplib="$STRIP -x"           striplib="$STRIP -x"
1275             old_striplib="$STRIP -S"
1276           AC_MSG_RESULT([yes])           AC_MSG_RESULT([yes])
1277         else         else
1278    AC_MSG_RESULT([no])    AC_MSG_RESULT([no])
# Line 1060  fi Line 1281  fi
1281     *)     *)
1282    AC_MSG_RESULT([no])    AC_MSG_RESULT([no])
1283      ;;      ;;
1284    esac      esac
1285  fi  fi
1286  ])# AC_LIBTOOL_SYS_LIB_STRIP  ])# AC_LIBTOOL_SYS_LIB_STRIP
1287    
# Line 1069  fi Line 1290  fi
1290  # -----------------------------  # -----------------------------
1291  # PORTME Fill in your ld.so characteristics  # PORTME Fill in your ld.so characteristics
1292  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1293  [AC_MSG_CHECKING([dynamic linker characteristics])  [AC_REQUIRE([LT_AC_PROG_SED])dnl
1294    AC_MSG_CHECKING([dynamic linker characteristics])
1295  library_names_spec=  library_names_spec=
1296  libname_spec='lib$name'  libname_spec='lib$name'
1297  soname_spec=  soname_spec=
1298  shrext=".so"  shrext_cmds=".so"
1299  postinstall_cmds=  postinstall_cmds=
1300  postuninstall_cmds=  postuninstall_cmds=
1301  finish_cmds=  finish_cmds=
# Line 1083  shlibpath_overrides_runpath=unknown Line 1305  shlibpath_overrides_runpath=unknown
1305  version_type=none  version_type=none
1306  dynamic_linker="$host_os ld.so"  dynamic_linker="$host_os ld.so"
1307  sys_lib_dlsearch_path_spec="/lib /usr/lib"  sys_lib_dlsearch_path_spec="/lib /usr/lib"
1308    m4_if($1,[],[
1309  if test "$GCC" = yes; then  if test "$GCC" = yes; then
1310    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`    case $host_os in
1311    if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then      darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1312        *) lt_awk_arg="/^libraries:/" ;;
1313      esac
1314      lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1315      if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1316      # if the path contains ";" then we assume it to be the separator      # if the path contains ";" then we assume it to be the separator
1317      # otherwise default to the standard path separator (i.e. ":") - it is      # otherwise default to the standard path separator (i.e. ":") - it is
1318      # assumed that no part of a normal pathname contains ";" but that should      # assumed that no part of a normal pathname contains ";" but that should
1319      # okay in the real world where ";" in dirpaths is itself problematic.      # okay in the real world where ";" in dirpaths is itself problematic.
1320      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`      lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1321    else    else
1322      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`      lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1323    fi    fi
1324      # Ok, now we have the path, separated by spaces, we can step through it
1325      # and add multilib dir if necessary.
1326      lt_tmp_lt_search_path_spec=
1327      lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1328      for lt_sys_path in $lt_search_path_spec; do
1329        if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1330          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1331        else
1332          test -d "$lt_sys_path" && \
1333            lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1334        fi
1335      done
1336      lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1337    BEGIN {RS=" "; FS="/|\n";} {
1338      lt_foo="";
1339      lt_count=0;
1340      for (lt_i = NF; lt_i > 0; lt_i--) {
1341        if ($lt_i != "" && $lt_i != ".") {
1342          if ($lt_i == "..") {
1343            lt_count++;
1344          } else {
1345            if (lt_count == 0) {
1346              lt_foo="/" $lt_i lt_foo;
1347            } else {
1348              lt_count--;
1349            }
1350          }
1351        }
1352      }
1353      if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1354      if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1355    }'`
1356      sys_lib_search_path_spec=`echo $lt_search_path_spec`
1357  else  else
1358    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1359  fi  fi])
1360  need_lib_prefix=unknown  need_lib_prefix=unknown
1361  hardcode_into_libs=no  hardcode_into_libs=no
1362    
# Line 1114  aix3*) Line 1374  aix3*)
1374    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
1375    ;;    ;;
1376    
1377  aix4* | aix5*)  aix[[4-9]]*)
1378    version_type=linux    version_type=linux
1379    need_lib_prefix=no    need_lib_prefix=no
1380    need_version=no    need_version=no
# Line 1161  aix4* | aix5*) Line 1421  aix4* | aix5*)
1421  amigaos*)  amigaos*)
1422    library_names_spec='$libname.ixlibrary $libname.a'    library_names_spec='$libname.ixlibrary $libname.a'
1423    # Create ${libname}_ixlibrary.a entries in /sys/libs.    # Create ${libname}_ixlibrary.a entries in /sys/libs.
1424    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'
1425    ;;    ;;
1426    
1427  beos*)  beos*)
# Line 1170  beos*) Line 1430  beos*)
1430    shlibpath_var=LIBRARY_PATH    shlibpath_var=LIBRARY_PATH
1431    ;;    ;;
1432    
1433  bsdi4*)  bsdi[[45]]*)
1434    version_type=linux    version_type=linux
1435    need_version=no    need_version=no
1436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 1186  bsdi4*) Line 1446  bsdi4*)
1446    
1447  cygwin* | mingw* | pw32*)  cygwin* | mingw* | pw32*)
1448    version_type=windows    version_type=windows
1449    shrext=".dll"    shrext_cmds=".dll"
1450    need_version=no    need_version=no
1451    need_lib_prefix=no    need_lib_prefix=no
1452    
# Line 1198  cygwin* | mingw* | pw32*) Line 1458  cygwin* | mingw* | pw32*)
1458        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1459        dldir=$destdir/`dirname \$dlpath`~        dldir=$destdir/`dirname \$dlpath`~
1460        test -d \$dldir || mkdir -p \$dldir~        test -d \$dldir || mkdir -p \$dldir~
1461        $install_prog $dir/$dlname \$dldir/$dlname'        $install_prog $dir/$dlname \$dldir/$dlname~
1462          chmod a+x \$dldir/$dlname'
1463      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1464        dlpath=$dir/\$dldll~        dlpath=$dir/\$dldll~
1465         $rm \$dlpath'         $rm \$dlpath'
# Line 1208  cygwin* | mingw* | pw32*) Line 1469  cygwin* | mingw* | pw32*)
1469      cygwin*)      cygwin*)
1470        # Cygwin DLLs use 'cyg' prefix rather than 'lib'        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1471        soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'        soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1472        sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"        sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1473        ;;        ;;
1474      mingw*)      mingw*)
1475        # MinGW DLLs use traditional 'lib' prefix        # MinGW DLLs use traditional 'lib' prefix
# Line 1228  cygwin* | mingw* | pw32*) Line 1489  cygwin* | mingw* | pw32*)
1489        ;;        ;;
1490      pw32*)      pw32*)
1491        # pw32 DLLs use 'pw' prefix rather than 'lib'        # pw32 DLLs use 'pw' prefix rather than 'lib'
1492        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1493        ;;        ;;
1494      esac      esac
1495      ;;      ;;
# Line 1247  darwin* | rhapsody*) Line 1508  darwin* | rhapsody*)
1508    version_type=darwin    version_type=darwin
1509    need_lib_prefix=no    need_lib_prefix=no
1510    need_version=no    need_version=no
   # 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.  
1511    library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'    library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1512    soname_spec='${libname}${release}${major}$shared_ext'    soname_spec='${libname}${release}${major}$shared_ext'
1513    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1514    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
1515    shrext='$(test .$module = .yes && echo .so || echo .dylib)'    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1516    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.    m4_if([$1], [],[
1517    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then    sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
   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"`  
   fi  
1518    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1519    ;;    ;;
1520    
# Line 1275  freebsd1*) Line 1531  freebsd1*)
1531    dynamic_linker=no    dynamic_linker=no
1532    ;;    ;;
1533    
1534  freebsd*)  freebsd* | dragonfly*)
1535    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    # DragonFly does not have aout.  When/if they implement a new
1536      # versioning mechanism, adjust this.
1537      if test -x /usr/bin/objformat; then
1538        objformat=`/usr/bin/objformat`
1539      else
1540        case $host_os in
1541        freebsd[[123]]*) objformat=aout ;;
1542        *) objformat=elf ;;
1543        esac
1544      fi
1545    version_type=freebsd-$objformat    version_type=freebsd-$objformat
1546    case $version_type in    case $version_type in
1547      freebsd-elf*)      freebsd-elf*)
# Line 1294  freebsd*) Line 1559  freebsd*)
1559    freebsd2*)    freebsd2*)
1560      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
1561      ;;      ;;
1562    freebsd3.[01]* | freebsdelf3.[01]*)    freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1563      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
1564      hardcode_into_libs=yes      hardcode_into_libs=yes
1565      ;;      ;;
1566    *) # from 3.2 on    freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1567      freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1568      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
1569      hardcode_into_libs=yes      hardcode_into_libs=yes
1570      ;;      ;;
1571      *) # from 4.6 on, and DragonFly
1572        shlibpath_overrides_runpath=yes
1573        hardcode_into_libs=yes
1574        ;;
1575    esac    esac
1576    ;;    ;;
1577    
# Line 1321  hpux9* | hpux10* | hpux11*) Line 1591  hpux9* | hpux10* | hpux11*)
1591    version_type=sunos    version_type=sunos
1592    need_lib_prefix=no    need_lib_prefix=no
1593    need_version=no    need_version=no
1594    case "$host_cpu" in    case $host_cpu in
1595    ia64*)    ia64*)
1596      shrext='.so'      shrext_cmds='.so'
1597      hardcode_into_libs=yes      hardcode_into_libs=yes
1598      dynamic_linker="$host_os dld.so"      dynamic_linker="$host_os dld.so"
1599      shlibpath_var=LD_LIBRARY_PATH      shlibpath_var=LD_LIBRARY_PATH
# Line 1338  hpux9* | hpux10* | hpux11*) Line 1608  hpux9* | hpux10* | hpux11*)
1608      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1609      ;;      ;;
1610     hppa*64*)     hppa*64*)
1611       shrext='.sl'       shrext_cmds='.sl'
1612       hardcode_into_libs=yes       hardcode_into_libs=yes
1613       dynamic_linker="$host_os dld.sl"       dynamic_linker="$host_os dld.sl"
1614       shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH       shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
# Line 1349  hpux9* | hpux10* | hpux11*) Line 1619  hpux9* | hpux10* | hpux11*)
1619       sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec       sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1620       ;;       ;;
1621     *)     *)
1622      shrext='.sl'      shrext_cmds='.sl'
1623      dynamic_linker="$host_os dld.sl"      dynamic_linker="$host_os dld.sl"
1624      shlibpath_var=SHLIB_PATH      shlibpath_var=SHLIB_PATH
1625      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
# Line 1361  hpux9* | hpux10* | hpux11*) Line 1631  hpux9* | hpux10* | hpux11*)
1631    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
1632    ;;    ;;
1633    
1634    interix[[3-9]]*)
1635      version_type=linux
1636      need_lib_prefix=no
1637      need_version=no
1638      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1639      soname_spec='${libname}${release}${shared_ext}$major'
1640      dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1641      shlibpath_var=LD_LIBRARY_PATH
1642      shlibpath_overrides_runpath=no
1643      hardcode_into_libs=yes
1644      ;;
1645    
1646  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
1647    case $host_os in    case $host_os in
1648      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
# Line 1404  linux*oldld* | linux*aout* | linux*coff* Line 1686  linux*oldld* | linux*aout* | linux*coff*
1686    ;;    ;;
1687    
1688  # This must be Linux ELF.  # This must be Linux ELF.
1689  linux*)  linux* | k*bsd*-gnu)
1690    version_type=linux    version_type=linux
1691    need_lib_prefix=no    need_lib_prefix=no
1692    need_version=no    need_version=no
# Line 1418  linux*) Line 1700  linux*)
1700    # before this can be enabled.    # before this can be enabled.
1701    hardcode_into_libs=yes    hardcode_into_libs=yes
1702    
1703      # Append ld.so.conf contents to the search path
1704      if test -f /etc/ld.so.conf; then
1705        lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1706        sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1707      fi
1708    
1709    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
1710    # powerpc, because MkLinux only supported shared libraries with the    # powerpc, because MkLinux only supported shared libraries with the
1711    # GNU dynamic linker.  Since this was broken with cross compilers,    # GNU dynamic linker.  Since this was broken with cross compilers,
# Line 1436  netbsd*) Line 1724  netbsd*)
1724      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1725      dynamic_linker='NetBSD (a.out) ld.so'      dynamic_linker='NetBSD (a.out) ld.so'
1726    else    else
1727      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1728      soname_spec='${libname}${release}${shared_ext}$major'      soname_spec='${libname}${release}${shared_ext}$major'
1729      dynamic_linker='NetBSD ld.elf_so'      dynamic_linker='NetBSD ld.elf_so'
1730    fi    fi
# Line 1452  newsos6) Line 1740  newsos6)
1740    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1741    ;;    ;;
1742    
1743  nto-qnx)  nto-qnx*)
1744    version_type=linux    version_type=linux
1745    need_lib_prefix=no    need_lib_prefix=no
1746    need_version=no    need_version=no
# Line 1464  nto-qnx) Line 1752  nto-qnx)
1752    
1753  openbsd*)  openbsd*)
1754    version_type=sunos    version_type=sunos
1755      sys_lib_dlsearch_path_spec="/usr/lib"
1756    need_lib_prefix=no    need_lib_prefix=no
1757    need_version=no    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1758      case $host_os in
1759        openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1760        *)                         need_version=no  ;;
1761      esac
1762    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1763    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1764    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
# Line 1485  openbsd*) Line 1778  openbsd*)
1778    
1779  os2*)  os2*)
1780    libname_spec='$name'    libname_spec='$name'
1781    shrext=".dll"    shrext_cmds=".dll"
1782    need_lib_prefix=no    need_lib_prefix=no
1783    library_names_spec='$libname${shared_ext} $libname.a'    library_names_spec='$libname${shared_ext} $libname.a'
1784    dynamic_linker='OS/2 ld.exe'    dynamic_linker='OS/2 ld.exe'
# Line 1503  osf3* | osf4* | osf5*) Line 1796  osf3* | osf4* | osf5*)
1796    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1797    ;;    ;;
1798    
1799  sco3.2v5*)  rdos*)
1800    version_type=osf    dynamic_linker=no
   soname_spec='${libname}${release}${shared_ext}$major'  
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'  
   shlibpath_var=LD_LIBRARY_PATH  
1801    ;;    ;;
1802    
1803  solaris*)  solaris*)
# Line 1535  sunos4*) Line 1825  sunos4*)
1825    need_version=yes    need_version=yes
1826    ;;    ;;
1827    
1828  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
1829    version_type=linux    version_type=linux
1830    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1831    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
# Line 1568  sysv4*MP*) Line 1858  sysv4*MP*)
1858    fi    fi
1859    ;;    ;;
1860    
1861    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1862      version_type=freebsd-elf
1863      need_lib_prefix=no
1864      need_version=no
1865      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1866      soname_spec='${libname}${release}${shared_ext}$major'
1867      shlibpath_var=LD_LIBRARY_PATH
1868      hardcode_into_libs=yes
1869      if test "$with_gnu_ld" = yes; then
1870        sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1871        shlibpath_overrides_runpath=no
1872      else
1873        sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1874        shlibpath_overrides_runpath=yes
1875        case $host_os in
1876          sco3.2v5*)
1877            sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1878            ;;
1879        esac
1880      fi
1881      sys_lib_dlsearch_path_spec='/usr/lib'
1882      ;;
1883    
1884  uts4*)  uts4*)
1885    version_type=linux    version_type=linux
1886    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 1581  uts4*) Line 1894  uts4*)
1894  esac  esac
1895  AC_MSG_RESULT([$dynamic_linker])  AC_MSG_RESULT([$dynamic_linker])
1896  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
1897    
1898    AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1899    [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1900    sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1901    AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1902    [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1903    sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1904    
1905    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1906    if test "$GCC" = yes; then
1907      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1908    fi
1909  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1910    
1911    
1912  # _LT_AC_TAGCONFIG  # _LT_AC_TAGCONFIG
1913  # ----------------  # ----------------
1914  AC_DEFUN([_LT_AC_TAGCONFIG],  AC_DEFUN([_LT_AC_TAGCONFIG],
1915  [AC_ARG_WITH([tags],  [AC_REQUIRE([LT_AC_PROG_SED])dnl
1916    AC_ARG_WITH([tags],
1917      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1918          [include additional configurations @<:@automatic@:>@])],          [include additional configurations @<:@automatic@:>@])],
1919      [tagnames="$withval"])      [tagnames="$withval"])
# Line 1605  if test -f "$ltmain" && test -n "$tagnam Line 1931  if test -f "$ltmain" && test -n "$tagnam
1931        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1932      fi      fi
1933    fi    fi
1934      if test -z "$LTCFLAGS"; then
1935        eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1936      fi
1937    
1938    # Extract list of available tagged configurations in $ofile.    # Extract list of available tagged configurations in $ofile.
1939    # Note that this assumes the entire list is on one line.    # Note that this assumes the entire list is on one line.
# Line 1631  if test -f "$ltmain" && test -n "$tagnam Line 1960  if test -f "$ltmain" && test -n "$tagnam
1960    
1961        case $tagname in        case $tagname in
1962        CXX)        CXX)
1963          if test -n "$CXX" && test "X$CXX" != "Xno"; then          if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1964                ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1965                (test "X$CXX" != "Xg++"))) ; then
1966            AC_LIBTOOL_LANG_CXX_CONFIG            AC_LIBTOOL_LANG_CXX_CONFIG
1967          else          else
1968            tagname=""            tagname=""
# Line 1693  AC_DEFUN([AC_LIBTOOL_DLOPEN], Line 2024  AC_DEFUN([AC_LIBTOOL_DLOPEN],
2024    
2025  # AC_LIBTOOL_WIN32_DLL  # AC_LIBTOOL_WIN32_DLL
2026  # --------------------  # --------------------
2027  # declare package support for building win32 dll's  # declare package support for building win32 DLLs
2028  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2029  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2030  ])# AC_LIBTOOL_WIN32_DLL  ])# AC_LIBTOOL_WIN32_DLL
# Line 1731  AC_ARG_ENABLE([shared], Line 2062  AC_ARG_ENABLE([shared],
2062    
2063  # AC_DISABLE_SHARED  # AC_DISABLE_SHARED
2064  # -----------------  # -----------------
2065  #- set the default shared flag to --disable-shared  # set the default shared flag to --disable-shared
2066  AC_DEFUN([AC_DISABLE_SHARED],  AC_DEFUN([AC_DISABLE_SHARED],
2067  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2068  AC_ENABLE_SHARED(no)  AC_ENABLE_SHARED(no)
# Line 1843  m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC Line 2174  m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC
2174    
2175  # AC_PATH_TOOL_PREFIX  # AC_PATH_TOOL_PREFIX
2176  # -------------------  # -------------------
2177  # find a file program which can recognise shared library  # find a file program which can recognize shared library
2178  AC_DEFUN([AC_PATH_TOOL_PREFIX],  AC_DEFUN([AC_PATH_TOOL_PREFIX],
2179  [AC_REQUIRE([AC_PROG_EGREP])dnl  [AC_REQUIRE([AC_PROG_EGREP])dnl
2180  AC_MSG_CHECKING([for $1])  AC_MSG_CHECKING([for $1])
# Line 1867  dnl not every word.  This closes a longs Line 2198  dnl not every word.  This closes a longs
2198        if test -n "$file_magic_test_file"; then        if test -n "$file_magic_test_file"; then
2199          case $deplibs_check_method in          case $deplibs_check_method in
2200          "file_magic "*)          "file_magic "*)
2201            file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2202            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2203            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2204              $EGREP "$file_magic_regex" > /dev/null; then              $EGREP "$file_magic_regex" > /dev/null; then
# Line 1906  fi Line 2237  fi
2237    
2238  # AC_PATH_MAGIC  # AC_PATH_MAGIC
2239  # -------------  # -------------
2240  # find a file program which can recognise a shared library  # find a file program which can recognize a shared library
2241  AC_DEFUN([AC_PATH_MAGIC],  AC_DEFUN([AC_PATH_MAGIC],
2242  [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)  [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2243  if test -z "$lt_cv_path_MAGIC_CMD"; then  if test -z "$lt_cv_path_MAGIC_CMD"; then
# Line 1921  fi Line 2252  fi
2252    
2253  # AC_PROG_LD  # AC_PROG_LD
2254  # ----------  # ----------
2255  # find the path to the GNU or non-GNU linker  # find the pathname to the GNU or non-GNU linker
2256  AC_DEFUN([AC_PROG_LD],  AC_DEFUN([AC_PROG_LD],
2257  [AC_ARG_WITH([gnu-ld],  [AC_ARG_WITH([gnu-ld],
2258      [AC_HELP_STRING([--with-gnu-ld],      [AC_HELP_STRING([--with-gnu-ld],
# Line 1947  if test "$GCC" = yes; then Line 2278  if test "$GCC" = yes; then
2278      # Accept absolute paths.      # Accept absolute paths.
2279      [[\\/]]* | ?:[[\\/]]*)      [[\\/]]* | ?:[[\\/]]*)
2280        re_direlt='/[[^/]][[^/]]*/\.\./'        re_direlt='/[[^/]][[^/]]*/\.\./'
2281        # Canonicalize the path of ld        # Canonicalize the pathname of ld
2282        ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`        ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2283        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2284          ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`          ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
# Line 1977  AC_CACHE_VAL(lt_cv_path_LD, Line 2308  AC_CACHE_VAL(lt_cv_path_LD,
2308      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
2309        lt_cv_path_LD="$ac_dir/$ac_prog"        lt_cv_path_LD="$ac_dir/$ac_prog"
2310        # 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,
2311        # but apparently some GNU ld's only accept -v.        # but apparently some variants of GNU ld only accept -v.
2312        # 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.
2313        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2314        *GNU* | *'with BFD'*)        *GNU* | *'with BFD'*)
# Line 2009  AC_PROG_LD_GNU Line 2340  AC_PROG_LD_GNU
2340  AC_DEFUN([AC_PROG_LD_GNU],  AC_DEFUN([AC_PROG_LD_GNU],
2341  [AC_REQUIRE([AC_PROG_EGREP])dnl  [AC_REQUIRE([AC_PROG_EGREP])dnl
2342  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2343  [# 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 lds only accept -v.
2344  case `"$LD" -v 2>&1 </dev/null` in  case `$LD -v 2>&1 </dev/null` in
2345  *GNU* | *'with BFD'*)  *GNU* | *'with BFD'*)
2346    lt_cv_prog_gnu_ld=yes    lt_cv_prog_gnu_ld=yes
2347    ;;    ;;
# Line 2036  case $reload_flag in Line 2367  case $reload_flag in
2367  *) reload_flag=" $reload_flag" ;;  *) reload_flag=" $reload_flag" ;;
2368  esac  esac
2369  reload_cmds='$LD$reload_flag -o $output$reload_objs'  reload_cmds='$LD$reload_flag -o $output$reload_objs'
2370    case $host_os in
2371      darwin*)
2372        if test "$GCC" = yes; then
2373          reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2374        else
2375          reload_cmds='$LD$reload_flag -o $output$reload_objs'
2376        fi
2377        ;;
2378    esac
2379  ])# AC_PROG_LD_RELOAD_FLAG  ])# AC_PROG_LD_RELOAD_FLAG
2380    
2381    
# Line 2044  reload_cmds='$LD$reload_flag -o $output$ Line 2384  reload_cmds='$LD$reload_flag -o $output$
2384  # how to check for library dependencies  # how to check for library dependencies
2385  #  -- PORTME fill in with the dynamic library characteristics  #  -- PORTME fill in with the dynamic library characteristics
2386  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2387  [AC_CACHE_CHECK([how to recognise dependent libraries],  [AC_CACHE_CHECK([how to recognize dependent libraries],
2388  lt_cv_deplibs_check_method,  lt_cv_deplibs_check_method,
2389  [lt_cv_file_magic_cmd='$MAGIC_CMD'  [lt_cv_file_magic_cmd='$MAGIC_CMD'
2390  lt_cv_file_magic_test_file=  lt_cv_file_magic_test_file=
# Line 2061  lt_cv_deplibs_check_method='unknown' Line 2401  lt_cv_deplibs_check_method='unknown'
2401  # whether `pass_all' will *always* work, you probably want this one.  # whether `pass_all' will *always* work, you probably want this one.
2402    
2403  case $host_os in  case $host_os in
2404  aix4* | aix5*)  aix[[4-9]]*)
2405    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2406    ;;    ;;
2407    
# Line 2069  beos*) Line 2409  beos*)
2409    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2410    ;;    ;;
2411    
2412  bsdi4*)  bsdi[[45]]*)
2413    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)'
2414    lt_cv_file_magic_cmd='/usr/bin/file -L'    lt_cv_file_magic_cmd='/usr/bin/file -L'
2415    lt_cv_file_magic_test_file=/shlib/libc.so    lt_cv_file_magic_test_file=/shlib/libc.so
2416    ;;    ;;
2417    
2418  cygwin* | mingw* | pw32*)  cygwin*)
2419    # win32_libid is a shell function defined in ltmain.sh    # func_win32_libid is a shell function defined in ltmain.sh
2420    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2421    lt_cv_file_magic_cmd='win32_libid'    lt_cv_file_magic_cmd='func_win32_libid'
2422      ;;
2423    
2424    mingw* | pw32*)
2425      # Base MSYS/MinGW do not provide the 'file' command needed by
2426      # func_win32_libid shell function, so use a weaker test based on 'objdump',
2427      # unless we find 'file', for example because we are cross-compiling.
2428      if ( file / ) >/dev/null 2>&1; then
2429        lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2430        lt_cv_file_magic_cmd='func_win32_libid'
2431      else
2432        lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2433        lt_cv_file_magic_cmd='$OBJDUMP -f'
2434      fi
2435    ;;    ;;
2436    
2437  darwin* | rhapsody*)  darwin* | rhapsody*)
   # this will be overwritten by pass_all, but leave it in just in case  
   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'  
   lt_cv_file_magic_cmd='/usr/bin/file -L'  
   case "$host_os" in  
   rhapsody* | darwin1.[[012]])  
     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`  
     ;;  
   *) # Darwin 1.3 on  
     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'  
     ;;  
   esac  
2438    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2439    ;;    ;;
2440    
2441  freebsd*)  freebsd* | dragonfly*)
2442    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2443      case $host_cpu in      case $host_cpu in
2444      i*86 )      i*86 )
2445        # Not sure whether the presence of OpenBSD here was a mistake.        # Not sure whether the presence of OpenBSD here was a mistake.
2446        # Let's accept both of them until this is cleared up.        # Let's accept both of them until this is cleared up.
2447        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|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2448        lt_cv_file_magic_cmd=/usr/bin/file        lt_cv_file_magic_cmd=/usr/bin/file
2449        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2450        ;;        ;;
# Line 2118  gnu*) Line 2460  gnu*)
2460    
2461  hpux10.20* | hpux11*)  hpux10.20* | hpux11*)
2462    lt_cv_file_magic_cmd=/usr/bin/file    lt_cv_file_magic_cmd=/usr/bin/file
2463    case "$host_cpu" in    case $host_cpu in
2464    ia64*)    ia64*)
2465      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2466      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
# Line 2134  hpux10.20* | hpux11*) Line 2476  hpux10.20* | hpux11*)
2476    esac    esac
2477    ;;    ;;
2478    
2479    interix[[3-9]]*)
2480      # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2481      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2482      ;;
2483    
2484  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
2485    case $host_os in    case $LD in
2486    irix5* | nonstopux*)    *-32|*"-32 ") libmagic=32-bit;;
2487      # this will be overridden with pass_all, but let us keep it just in case    *-n32|*"-n32 ") libmagic=N32;;
2488      lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"    *-64|*"-64 ") libmagic=64-bit;;
2489      ;;    *) libmagic=never-match;;
   *)  
     case $LD in  
     *-32|*"-32 ") libmagic=32-bit;;  
     *-n32|*"-n32 ") libmagic=N32;;  
     *-64|*"-64 ") libmagic=64-bit;;  
     *) libmagic=never-match;;  
     esac  
     # this will be overridden with pass_all, but let us keep it just in case  
     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"  
     ;;  
2490    esac    esac
   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`  
2491    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2492    ;;    ;;
2493    
2494  # This must be Linux ELF.  # This must be Linux ELF.
2495  linux*)  linux* | k*bsd*-gnu)
2496    case $host_cpu in    lt_cv_deplibs_check_method=pass_all
   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)  
     lt_cv_deplibs_check_method=pass_all ;;  
   *)  
     # glibc up to 2.1.1 does not perform some relocations on ARM  
     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;  
   esac  
   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`  
2497    ;;    ;;
2498    
2499  netbsd*)  netbsd*)
# Line 2181  newos6*) Line 2510  newos6*)
2510    lt_cv_file_magic_test_file=/usr/lib/libnls.so    lt_cv_file_magic_test_file=/usr/lib/libnls.so
2511    ;;    ;;
2512    
2513  nto-qnx)  nto-qnx*)
2514    lt_cv_deplibs_check_method=unknown    lt_cv_deplibs_check_method=unknown
2515    ;;    ;;
2516    
2517  openbsd*)  openbsd*)
   lt_cv_file_magic_cmd=/usr/bin/file  
   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`  
2518    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2519      lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2520    else    else
2521      lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2522    fi    fi
2523    ;;    ;;
2524    
2525  osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
   # this will be overridden with pass_all, but let us keep it just in case  
   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'  
   lt_cv_file_magic_test_file=/shlib/libc.so  
2526    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2527    ;;    ;;
2528    
2529  sco3.2v5*)  rdos*)
2530    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2531    ;;    ;;
2532    
2533  solaris*)  solaris*)
2534    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
   lt_cv_file_magic_test_file=/lib/libc.so  
2535    ;;    ;;
2536    
2537  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
2538    case $host_vendor in    case $host_vendor in
2539    motorola)    motorola)
2540      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]]'
# Line 2232  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 2555  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2555    siemens)    siemens)
2556      lt_cv_deplibs_check_method=pass_all      lt_cv_deplibs_check_method=pass_all
2557      ;;      ;;
2558      pc)
2559        lt_cv_deplibs_check_method=pass_all
2560        ;;
2561    esac    esac
2562    ;;    ;;
2563    
2564  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2565    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2566    ;;    ;;
2567  esac  esac
# Line 2248  test -z "$deplibs_check_method" && depli Line 2574  test -z "$deplibs_check_method" && depli
2574    
2575  # AC_PROG_NM  # AC_PROG_NM
2576  # ----------  # ----------
2577  # find the path to a BSD-compatible name lister  # find the pathname to a BSD-compatible name lister
2578  AC_DEFUN([AC_PROG_NM],  AC_DEFUN([AC_PROG_NM],
2579  [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,  [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2580  [if test -n "$NM"; then  [if test -n "$NM"; then
2581    # Let the user override the test.    # Let the user override the test.
2582    lt_cv_path_NM="$NM"    lt_cv_path_NM="$NM"
2583  else  else
2584    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR    lt_nm_to_check="${ac_tool_prefix}nm"
2585    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2586      IFS="$lt_save_ifs"      lt_nm_to_check="$lt_nm_to_check nm"
2587      test -z "$ac_dir" && ac_dir=.    fi
2588      tmp_nm="$ac_dir/${ac_tool_prefix}nm"    for lt_tmp_nm in $lt_nm_to_check; do
2589      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2590        # Check to see if the nm accepts a BSD-compat flag.      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2591        # Adding the `sed 1q' prevents false positives on HP-UX, which says:        IFS="$lt_save_ifs"
2592        #   nm: unknown option "B" ignored        test -z "$ac_dir" && ac_dir=.
2593        # Tru64's nm complains that /dev/null is an invalid object file        tmp_nm="$ac_dir/$lt_tmp_nm"
2594        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in        if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2595        */dev/null* | *'Invalid file or object type'*)          # Check to see if the nm accepts a BSD-compat flag.
2596          lt_cv_path_NM="$tmp_nm -B"          # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2597          break          #   nm: unknown option "B" ignored
2598          ;;          # Tru64's nm complains that /dev/null is an invalid object file
2599        *)          case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2600          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in          */dev/null* | *'Invalid file or object type'*)
2601          */dev/null*)            lt_cv_path_NM="$tmp_nm -B"
           lt_cv_path_NM="$tmp_nm -p"  
2602            break            break
2603            ;;            ;;
2604          *)          *)
2605            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2606            continue # so that we can try to find one that supports BSD flags            */dev/null*)
2607                lt_cv_path_NM="$tmp_nm -p"
2608                break
2609                ;;
2610              *)
2611                lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2612                continue # so that we can try to find one that supports BSD flags
2613                ;;
2614              esac
2615            ;;            ;;
2616          esac          esac
2617        esac        fi
2618      fi      done
2619        IFS="$lt_save_ifs"
2620    done    done
   IFS="$lt_save_ifs"  
2621    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2622  fi])  fi])
2623  NM="$lt_cv_path_NM"  NM="$lt_cv_path_NM"
# Line 2316  esac Line 2649  esac
2649  # -----------------------------------  # -----------------------------------
2650  # sets LIBLTDL to the link flags for the libltdl convenience library and  # sets LIBLTDL to the link flags for the libltdl convenience library and
2651  # LTDLINCL to the include flags for the libltdl header and adds  # LTDLINCL to the include flags for the libltdl header and adds
2652  # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL  # --enable-ltdl-convenience to the configure arguments.  Note that
2653  # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If  # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2654  # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will  # it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2655  # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with  # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2656  # '${top_srcdir}/' (note the single quotes!).  If your package is not  # (note the single quotes!).  If your package is not flat and you're not
2657  # flat and you're not using automake, define top_builddir and  # using automake, define top_builddir and top_srcdir appropriately in
2658  # top_srcdir appropriately in the Makefiles.  # the Makefiles.
2659  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2660  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2661    case $enable_ltdl_convenience in    case $enable_ltdl_convenience in
# Line 2341  AC_DEFUN([AC_LIBLTDL_CONVENIENCE], Line 2674  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2674  # -----------------------------------  # -----------------------------------
2675  # sets LIBLTDL to the link flags for the libltdl installable library and  # sets LIBLTDL to the link flags for the libltdl installable library and
2676  # LTDLINCL to the include flags for the libltdl header and adds  # LTDLINCL to the include flags for the libltdl header and adds
2677  # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL  # --enable-ltdl-install to the configure arguments.  Note that
2678  # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If  # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2679  # DIRECTORY is not provided and an installed libltdl is not found, it is  # and an installed libltdl is not found, it is assumed to be `libltdl'.
2680  # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'  # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2681  # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single  # '${top_srcdir}/' (note the single quotes!).  If your package is not
2682  # quotes!).  If your package is not flat and you're not using automake,  # flat and you're not using automake, define top_builddir and top_srcdir
2683  # define top_builddir and top_srcdir appropriately in the Makefiles.  # appropriately in the Makefiles.
2684  # 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.
2685  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2686  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
# Line 2385  AC_DEFUN([AC_LIBTOOL_CXX], Line 2718  AC_DEFUN([AC_LIBTOOL_CXX],
2718  # ---------------  # ---------------
2719  AC_DEFUN([_LT_AC_LANG_CXX],  AC_DEFUN([_LT_AC_LANG_CXX],
2720  [AC_REQUIRE([AC_PROG_CXX])  [AC_REQUIRE([AC_PROG_CXX])
2721  AC_REQUIRE([AC_PROG_CXXCPP])  AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2722  _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])  _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2723  ])# _LT_AC_LANG_CXX  ])# _LT_AC_LANG_CXX
2724    
2725    # _LT_AC_PROG_CXXCPP
2726    # ------------------
2727    AC_DEFUN([_LT_AC_PROG_CXXCPP],
2728    [
2729    AC_REQUIRE([AC_PROG_CXX])
2730    if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2731        ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2732        (test "X$CXX" != "Xg++"))) ; then
2733      AC_PROG_CXXCPP
2734    fi
2735    ])# _LT_AC_PROG_CXXCPP
2736    
2737  # AC_LIBTOOL_F77  # AC_LIBTOOL_F77
2738  # --------------  # --------------
# Line 2402  AC_DEFUN([AC_LIBTOOL_F77], Line 2746  AC_DEFUN([AC_LIBTOOL_F77],
2746  # ---------------  # ---------------
2747  AC_DEFUN([_LT_AC_LANG_F77],  AC_DEFUN([_LT_AC_LANG_F77],
2748  [AC_REQUIRE([AC_PROG_F77])  [AC_REQUIRE([AC_PROG_F77])
2749  _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])  _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2750  ])# _LT_AC_LANG_F77  ])# _LT_AC_LANG_F77
2751    
2752    
# Line 2423  AC_DEFUN([_LT_AC_LANG_GCJ], Line 2767  AC_DEFUN([_LT_AC_LANG_GCJ],
2767        [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],        [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2768           [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],           [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2769             [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])             [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2770  _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])  _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2771  ])# _LT_AC_LANG_GCJ  ])# _LT_AC_LANG_GCJ
2772    
2773    
2774  # AC_LIBTOOL_RC  # AC_LIBTOOL_RC
2775  # --------------  # -------------
2776  # enable support for Windows resource files  # enable support for Windows resource files
2777  AC_DEFUN([AC_LIBTOOL_RC],  AC_DEFUN([AC_LIBTOOL_RC],
2778  [AC_REQUIRE([LT_AC_PROG_RC])  [AC_REQUIRE([LT_AC_PROG_RC])
2779  _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])  _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2780  ])# AC_LIBTOOL_RC  ])# AC_LIBTOOL_RC
2781    
2782    
# Line 2454  objext=o Line 2798  objext=o
2798  _LT_AC_TAGVAR(objext, $1)=$objext  _LT_AC_TAGVAR(objext, $1)=$objext
2799    
2800  # Code to be used in simple compile tests  # Code to be used in simple compile tests
2801  lt_simple_compile_test_code="int some_variable = 0;\n"  lt_simple_compile_test_code="int some_variable = 0;"
2802    
2803  # Code to be used in simple link tests  # Code to be used in simple link tests
2804  lt_simple_link_test_code='int main(){return(0);}\n'  lt_simple_link_test_code='int main(){return(0);}'
2805    
2806  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
2807    
2808  #  # save warnings/boilerplate of simple test code
2809  # Check for any special shared library compilation flags.  _LT_COMPILER_BOILERPLATE
2810  #  _LT_LINKER_BOILERPLATE
 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=  
 if test "$GCC" = no; then  
   case $host_os in  
   sco3.2v5*)  
     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'  
     ;;  
   esac  
 fi  
 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then  
   AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])  
   if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[      ]]" >/dev/null; then :  
   else  
     AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])  
     _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no  
   fi  
 fi  
   
   
 #  
 # Check to make sure the static flag actually works.  
 #  
 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],  
   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),  
   $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),  
   [],  
   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])  
   
2811    
2812  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2813  AC_LIBTOOL_PROG_COMPILER_PIC($1)  AC_LIBTOOL_PROG_COMPILER_PIC($1)
2814  AC_LIBTOOL_PROG_CC_C_O($1)  AC_LIBTOOL_PROG_CC_C_O($1)
2815  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2816  AC_LIBTOOL_PROG_LD_SHLIBS($1)  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2817    AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2818  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2819  AC_LIBTOOL_SYS_LIB_STRIP  AC_LIBTOOL_SYS_LIB_STRIP
2820  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)  AC_LIBTOOL_DLOPEN_SELF
 AC_LIBTOOL_DLOPEN_SELF($1)  
2821    
2822  # Report which librarie types wil actually be built  # Report which library types will actually be built
2823  AC_MSG_CHECKING([if libtool supports shared libraries])  AC_MSG_CHECKING([if libtool supports shared libraries])
2824  AC_MSG_RESULT([$can_build_shared])  AC_MSG_RESULT([$can_build_shared])
2825    
# Line 2511  test "$can_build_shared" = "no" && enabl Line 2828  test "$can_build_shared" = "no" && enabl
2828    
2829  # On AIX, shared libraries and static libraries use the same namespace, and  # On AIX, shared libraries and static libraries use the same namespace, and
2830  # are all built from PIC.  # are all built from PIC.
2831  case "$host_os" in  case $host_os in
2832  aix3*)  aix3*)
2833    test "$enable_shared" = yes && enable_static=no    test "$enable_shared" = yes && enable_static=no
2834    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
# Line 2520  aix3*) Line 2837  aix3*)
2837    fi    fi
2838    ;;    ;;
2839    
2840  aix4*)  aix[[4-9]]*)
2841    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2842      test "$enable_shared" = yes && enable_static=no      test "$enable_shared" = yes && enable_static=no
2843    fi    fi
2844    ;;      ;;
   darwin* | rhapsody*)  
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then  
     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no  
     case "$host_os" in  
     rhapsody* | darwin1.[[012]])  
       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'  
       ;;  
     *) # Darwin 1.3 on  
       test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'  
       ;;  
     esac  
     # 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.  Also zsh mangles  
     #          `"' quotes if we put them in here... so don't!  
                 output_verbose_link_cmd='echo'  
     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'  
     _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'  
     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
                   _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}'  
                   _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}'  
     _LT_AC_TAGVAR(hardcode_direct, $1)=no  
     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes  
     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported  
     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'  
     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes  
     fi  
     ;;    
2845  esac  esac
2846  AC_MSG_RESULT([$enable_shared])  AC_MSG_RESULT([$enable_shared])
2847    
# Line 2577  AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [ Line 2866  AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [
2866  AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],  AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2867  [AC_LANG_PUSH(C++)  [AC_LANG_PUSH(C++)
2868  AC_REQUIRE([AC_PROG_CXX])  AC_REQUIRE([AC_PROG_CXX])
2869  AC_REQUIRE([AC_PROG_CXXCPP])  AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2870    
2871  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2872  _LT_AC_TAGVAR(allow_undefined_flag, $1)=  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
# Line 2589  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, Line 2878  _LT_AC_TAGVAR(hardcode_libdir_flag_spec,
2878  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2879  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2880  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2881    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2882  _LT_AC_TAGVAR(hardcode_automatic, $1)=no  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2883  _LT_AC_TAGVAR(module_cmds, $1)=  _LT_AC_TAGVAR(module_cmds, $1)=
2884  _LT_AC_TAGVAR(module_expsym_cmds, $1)=  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
# Line 2604  _LT_AC_TAGVAR(postdep_objects, $1)= Line 2894  _LT_AC_TAGVAR(postdep_objects, $1)=
2894  _LT_AC_TAGVAR(predeps, $1)=  _LT_AC_TAGVAR(predeps, $1)=
2895  _LT_AC_TAGVAR(postdeps, $1)=  _LT_AC_TAGVAR(postdeps, $1)=
2896  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2897    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2898    
2899  # Source file extension for C++ test sources.  # Source file extension for C++ test sources.
2900  ac_ext=cc  ac_ext=cpp
2901    
2902  # Object file extension for compiled C++ test sources.  # Object file extension for compiled C++ test sources.
2903  objext=o  objext=o
2904  _LT_AC_TAGVAR(objext, $1)=$objext  _LT_AC_TAGVAR(objext, $1)=$objext
2905    
2906  # Code to be used in simple compile tests  # Code to be used in simple compile tests
2907  lt_simple_compile_test_code="int some_variable = 0;\n"  lt_simple_compile_test_code="int some_variable = 0;"
2908    
2909  # Code to be used in simple link tests  # Code to be used in simple link tests
2910  lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2911    
2912  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2913  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
2914    
2915    # save warnings/boilerplate of simple test code
2916    _LT_COMPILER_BOILERPLATE
2917    _LT_LINKER_BOILERPLATE
2918    
2919  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
2920  lt_save_CC=$CC  lt_save_CC=$CC
2921  lt_save_LD=$LD  lt_save_LD=$LD
# Line 2631  lt_save_path_LD=$lt_cv_path_LD Line 2926  lt_save_path_LD=$lt_cv_path_LD
2926  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2927    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2928  else  else
2929    unset lt_cv_prog_gnu_ld    $as_unset lt_cv_prog_gnu_ld
2930  fi  fi
2931  if test -n "${lt_cv_path_LDCXX+set}"; then  if test -n "${lt_cv_path_LDCXX+set}"; then
2932    lt_cv_path_LD=$lt_cv_path_LDCXX    lt_cv_path_LD=$lt_cv_path_LDCXX
2933  else  else
2934    unset lt_cv_path_LD    $as_unset lt_cv_path_LD
2935  fi  fi
2936  test -z "${LDCXX+set}" || LD=$LDCXX  test -z "${LDCXX+set}" || LD=$LDCXX
2937  CC=${CXX-"c++"}  CC=${CXX-"c++"}
2938  compiler=$CC  compiler=$CC
2939  _LT_AC_TAGVAR(compiler, $1)=$CC  _LT_AC_TAGVAR(compiler, $1)=$CC
2940  cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`  _LT_CC_BASENAME([$compiler])
2941    
2942  # We don't want -fno-exception wen compiling C++ code, so set the  # We don't want -fno-exception wen compiling C++ code, so set the
2943  # no_builtin_flag separately  # no_builtin_flag separately
# Line 2687  if test "$GXX" = yes; then Line 2982  if test "$GXX" = yes; then
2982      # linker, instead of GNU ld.  If possible, this setting should      # linker, instead of GNU ld.  If possible, this setting should
2983      # overridden to take advantage of the native linker features on      # overridden to take advantage of the native linker features on
2984      # the platform it is being used on.      # the platform it is being used on.
2985      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2986    fi    fi
2987    
2988    # Commands to make compiler produce verbose output that lists    # Commands to make compiler produce verbose output that lists
# Line 2709  case $host_os in Line 3004  case $host_os in
3004      # FIXME: insert proper C++ library support      # FIXME: insert proper C++ library support
3005      _LT_AC_TAGVAR(ld_shlibs, $1)=no      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3006      ;;      ;;
3007    aix4* | aix5*)    aix[[4-9]]*)
3008      if test "$host_cpu" = ia64; then      if test "$host_cpu" = ia64; then
3009        # On IA64, the linker does run time linking by default, so we don't        # On IA64, the linker does run time linking by default, so we don't
3010        # have to do anything special.        # have to do anything special.
# Line 2722  case $host_os in Line 3017  case $host_os in
3017        # Test if we are trying to use run time linking or normal        # Test if we are trying to use run time linking or normal
3018        # AIX style linking. If -brtl is somewhere in LDFLAGS, we        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3019        # need to do runtime linking.        # need to do runtime linking.
3020        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3021          for ld_flag in $LDFLAGS; do          for ld_flag in $LDFLAGS; do
3022            case $ld_flag in            case $ld_flag in
3023            *-brtl*)            *-brtl*)
# Line 2731  case $host_os in Line 3026  case $host_os in
3026              ;;              ;;
3027            esac            esac
3028          done          done
3029            ;;
3030        esac        esac
3031    
3032        exp_sym_flag='-bexport'        exp_sym_flag='-bexport'
# Line 2749  case $host_os in Line 3045  case $host_os in
3045      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3046    
3047      if test "$GXX" = yes; then      if test "$GXX" = yes; then
3048        case $host_os in aix4.[012]|aix4.[012].*)        case $host_os in aix4.[[012]]|aix4.[[012]].*)
3049        # We only want to do this on AIX 4.2 and lower, the check        # We only want to do this on AIX 4.2 and lower, the check
3050        # below for broken collect2 doesn't work under 4.3+        # below for broken collect2 doesn't work under 4.3+
3051          collect2name=`${CC} -print-prog-name=collect2`          collect2name=`${CC} -print-prog-name=collect2`
# Line 2757  case $host_os in Line 3053  case $host_os in
3053             strings "$collect2name" | grep resolve_lib_name >/dev/null             strings "$collect2name" | grep resolve_lib_name >/dev/null
3054          then          then
3055            # We have reworked collect2            # We have reworked collect2
3056            _LT_AC_TAGVAR(hardcode_direct, $1)=yes            :
3057          else          else
3058            # We have old collect2            # We have old collect2
3059            _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported            _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
# Line 2768  case $host_os in Line 3064  case $host_os in
3064            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3065            _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=            _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3066          fi          fi
3067            ;;
3068        esac        esac
3069        shared_flag='-shared'        shared_flag='-shared'
3070          if test "$aix_use_runtimelinking" = yes; then
3071            shared_flag="$shared_flag "'${wl}-G'
3072          fi
3073      else      else
3074        # not using gcc        # not using gcc
3075        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
# Line 2796  case $host_os in Line 3096  case $host_os in
3096        _LT_AC_SYS_LIBPATH_AIX        _LT_AC_SYS_LIBPATH_AIX
3097        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3098    
3099        _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"        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3100       else       else
3101        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
3102          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3103          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3104          _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"          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3105        else        else
3106          # Determine the default libpath from the value encoded in an empty executable.          # Determine the default libpath from the value encoded in an empty executable.
3107          _LT_AC_SYS_LIBPATH_AIX          _LT_AC_SYS_LIBPATH_AIX
# Line 2810  case $host_os in Line 3110  case $host_os in
3110          # -berok will link without error, but may produce a broken library.          # -berok will link without error, but may produce a broken library.
3111          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3112          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
         # -bexpall does not export symbols beginning with underscore (_)  
         _LT_AC_TAGVAR(always_export_symbols, $1)=yes  
3113          # Exported symbols can be pulled into shared objects from archives          # Exported symbols can be pulled into shared objects from archives
3114          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3115          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3116          # This is similar to how AIX traditionally builds it's shared libraries.          # This is similar to how AIX traditionally builds its shared libraries.
3117          _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'          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3118        fi        fi
3119      fi      fi
3120      ;;      ;;
3121    
3122      beos*)
3123        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3124          _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3125          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3126          # support --undefined.  This deserves some investigation.  FIXME
3127          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3128        else
3129          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3130        fi
3131        ;;
3132    
3133    chorus*)    chorus*)
3134      case $cc_basename in      case $cc_basename in
3135        *)        *)
# Line 2838  case $host_os in Line 3148  case $host_os in
3148      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3149    
3150      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3151        _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'        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3152        # If the export-symbols file already is a .def file (1st line        # If the export-symbols file already is a .def file (1st line
3153        # is EXPORTS), use it as is; otherwise, prepend...        # is EXPORTS), use it as is; otherwise, prepend...
3154        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
# Line 2847  case $host_os in Line 3157  case $host_os in
3157          echo EXPORTS > $output_objdir/$soname.def;          echo EXPORTS > $output_objdir/$soname.def;
3158          cat $export_symbols >> $output_objdir/$soname.def;          cat $export_symbols >> $output_objdir/$soname.def;
3159        fi~        fi~
3160        $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'        $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3161      else      else
3162        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3163      fi      fi
3164    ;;    ;;
3165          darwin* | rhapsody*)
3166    darwin* | rhapsody*)        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3167     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then        _LT_AC_TAGVAR(hardcode_direct, $1)=no
3168      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3169      case "$host_os" in        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3170      rhapsody* | darwin1.[[012]])        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3171        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3172        ;;        _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3173      *) # Darwin 1.3 on        if test "$GXX" = yes ; then
3174        test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'        output_verbose_link_cmd='echo'
3175        ;;        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3176      esac        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3177          lt_int_apple_cc_single_mod=no        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3178          output_verbose_link_cmd='echo'        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3179          if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3180            lt_int_apple_cc_single_mod=yes          _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3181          fi          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3182          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then        fi
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'  
         else  
         _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'  
       fi  
       _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'  
   
     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then  
         _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}'  
3183        else        else
3184          _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}'        case $cc_basename in
3185            xlc*)
3186             output_verbose_link_cmd='echo'
3187              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3188              _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3189              # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3190              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3191              _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3192              ;;
3193           *)
3194             _LT_AC_TAGVAR(ld_shlibs, $1)=no
3195              ;;
3196          esac
3197        fi        fi
3198          _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}'          ;;
     _LT_AC_TAGVAR(hardcode_direct, $1)=no  
     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes  
     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported  
     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'  
     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes  
    fi  
     ;;  
3199    
3200    dgux*)    dgux*)
3201      case $cc_basename in      case $cc_basename in
3202        ec++)        ec++*)
3203          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3204          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3205          ;;          ;;
3206        ghcx)        ghcx*)
3207          # Green Hills C++ Compiler          # Green Hills C++ Compiler
3208          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3209          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
# Line 2908  case $host_os in Line 3214  case $host_os in
3214          ;;          ;;
3215      esac      esac
3216      ;;      ;;
3217    freebsd[12]*)    freebsd[[12]]*)
3218      # C++ shared libraries reported to be fairly broken before switch to ELF      # C++ shared libraries reported to be fairly broken before switch to ELF
3219      _LT_AC_TAGVAR(ld_shlibs, $1)=no      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3220      ;;      ;;
3221    freebsd-elf*)    freebsd-elf*)
3222      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3223      ;;      ;;
3224    freebsd*)    freebsd* | dragonfly*)
3225      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3226      # conventions      # conventions
3227      _LT_AC_TAGVAR(ld_shlibs, $1)=yes      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
# Line 2932  case $host_os in Line 3238  case $host_os in
3238                                  # location of the library.                                  # location of the library.
3239    
3240      case $cc_basename in      case $cc_basename in
3241      CC)      CC*)
3242        # FIXME: insert proper C++ library support        # FIXME: insert proper C++ library support
3243        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3244        ;;        ;;
3245      aCC)      aCC*)
3246        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3247        # Commands to make compiler produce verbose output that lists        # Commands to make compiler produce verbose output that lists
3248        # what "hidden" libraries, object files and flags are used when        # what "hidden" libraries, object files and flags are used when
# Line 2946  case $host_os in Line 3252  case $host_os in
3252        # explicitly linking system object files so we need to strip them        # explicitly linking system object files so we need to strip them
3253        # from the output so that they don't get included in the library        # from the output so that they don't get included in the library
3254        # dependencies.        # dependencies.
3255        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3256        ;;        ;;
3257      *)      *)
3258        if test "$GXX" = yes; then        if test "$GXX" = yes; then
# Line 2960  case $host_os in Line 3266  case $host_os in
3266      ;;      ;;
3267    hpux10*|hpux11*)    hpux10*|hpux11*)
3268      if test $with_gnu_ld = no; then      if test $with_gnu_ld = no; then
3269        case "$host_cpu" in        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3270        hppa*64*)        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3271          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'  
3272          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'        case $host_cpu in
3273          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:        hppa*64*|ia64*) ;;
         ;;  
       ia64*)  
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'  
         ;;  
3274        *)        *)
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'  
         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:  
3275          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3276          ;;          ;;
3277        esac        esac
3278      fi      fi
3279      case "$host_cpu" in      case $host_cpu in
3280      hppa*64*)      hppa*64*|ia64*)
       _LT_AC_TAGVAR(hardcode_direct, $1)=no  
       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no  
       ;;  
     ia64*)  
3281        _LT_AC_TAGVAR(hardcode_direct, $1)=no        _LT_AC_TAGVAR(hardcode_direct, $1)=no
3282        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,  
                                               # but as the default  
                                               # location of the library.  
3283        ;;        ;;
3284      *)      *)
3285        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
# Line 2997  case $host_os in Line 3290  case $host_os in
3290      esac      esac
3291    
3292      case $cc_basename in      case $cc_basename in
3293        CC)        CC*)
3294          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3295          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3296          ;;          ;;
3297        aCC)        aCC*)
3298          case "$host_cpu" in          case $host_cpu in
3299          hppa*64*|ia64*)          hppa*64*)
3300            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3301              ;;
3302            ia64*)
3303              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3304            ;;            ;;
3305          *)          *)
3306            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
# Line 3023  case $host_os in Line 3319  case $host_os in
3319        *)        *)
3320          if test "$GXX" = yes; then          if test "$GXX" = yes; then
3321            if test $with_gnu_ld = no; then            if test $with_gnu_ld = no; then
3322              case "$host_cpu" in              case $host_cpu in
3323              ia64*|hppa*64*)              hppa*64*)
3324                _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'                _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3325                  ;;
3326                ia64*)
3327                  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3328                ;;                ;;
3329              *)              *)
3330                _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'                _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
# Line 3039  case $host_os in Line 3338  case $host_os in
3338          ;;          ;;
3339      esac      esac
3340      ;;      ;;
3341      interix[[3-9]]*)
3342        _LT_AC_TAGVAR(hardcode_direct, $1)=no
3343        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3344        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3345        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3346        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3347        # Instead, shared libraries are loaded at an image base (0x10000000 by
3348        # default) and relocated if they conflict, which is a slow very memory
3349        # consuming and fragmenting process.  To avoid this, we pick a random,
3350        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3351        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3352        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3353        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3354        ;;
3355    irix5* | irix6*)    irix5* | irix6*)
3356      case $cc_basename in      case $cc_basename in
3357        CC)        CC*)
3358          # SGI C++          # SGI C++
3359          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3360    
3361          # Archives containing C++ object files must be created using          # Archives containing C++ object files must be created using
3362          # "CC -ar", where "CC" is the IRIX C++ compiler.  This is          # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
# Line 3054  case $host_os in Line 3367  case $host_os in
3367        *)        *)
3368          if test "$GXX" = yes; then          if test "$GXX" = yes; then
3369            if test "$with_gnu_ld" = no; then            if test "$with_gnu_ld" = no; then
3370              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3371            else            else
3372              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3373            fi            fi
# Line 3065  case $host_os in Line 3378  case $host_os in
3378      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3379      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3380      ;;      ;;
3381    linux*)    linux* | k*bsd*-gnu)
3382      case $cc_basename in      case $cc_basename in
3383        KCC)        KCC*)
3384          # Kuck and Associates, Inc. (KAI) C++ Compiler          # Kuck and Associates, Inc. (KAI) C++ Compiler
3385    
3386          # KCC will only create a shared library if the output file          # KCC will only create a shared library if the output file
# Line 3092  case $host_os in Line 3405  case $host_os in
3405          # "CC -Bstatic", where "CC" is the KAI C++ compiler.          # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3406          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3407          ;;          ;;
3408        icpc)        icpc*)
3409          # Intel C++          # Intel C++
3410          with_gnu_ld=yes          with_gnu_ld=yes
3411            # version 8.0 and above of icpc choke on multiply defined symbols
3412            # if we add $predep_objects and $postdep_objects, however 7.1 and
3413            # earlier do not add the objects themselves.
3414            case `$CC -V 2>&1` in
3415            *"Version 7."*)
3416              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3417              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3418              ;;
3419            *)  # Version 8.0 or newer
3420              tmp_idyn=
3421              case $host_cpu in
3422                ia64*) tmp_idyn=' -i_dynamic';;
3423              esac
3424              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3425              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3426              ;;
3427            esac
3428          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'  
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
3429          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3430          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3431          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3432          ;;          ;;
3433        cxx)        pgCC* | pgcpp*)
3434            # Portland Group C++ compiler
3435            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3436            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3437    
3438            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3439            _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3440            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3441            ;;
3442          cxx*)
3443          # Compaq C++          # Compaq C++
3444          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3445          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
# Line 3121  case $host_os in Line 3458  case $host_os in
3458          # dependencies.          # dependencies.
3459          output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'          output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3460          ;;          ;;
3461          *)
3462            case `$CC -V 2>&1 | sed 5q` in
3463            *Sun\ C*)
3464              # Sun C++ 5.9
3465              _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3466              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3467              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3468              _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3469              _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3470    
3471              # Not sure whether something based on
3472              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3473              # would be better.
3474              output_verbose_link_cmd='echo'
3475    
3476              # Archives containing C++ object files must be created using
3477              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3478              # necessary to make sure instantiated templates are included
3479              # in the archive.
3480              _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3481              ;;
3482            esac
3483            ;;
3484      esac      esac
3485      ;;      ;;
3486    lynxos*)    lynxos*)
# Line 3133  case $host_os in Line 3493  case $host_os in
3493      ;;      ;;
3494    mvs*)    mvs*)
3495      case $cc_basename in      case $cc_basename in
3496        cxx)        cxx*)
3497          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3498          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3499          ;;          ;;
# Line 3154  case $host_os in Line 3514  case $host_os in
3514      # Workaround some broken pre-1.5 toolchains      # Workaround some broken pre-1.5 toolchains
3515      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3516      ;;      ;;
3517      openbsd2*)
3518        # C++ shared libraries are fairly broken
3519        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3520        ;;
3521      openbsd*)
3522        if test -f /usr/libexec/ld.so; then
3523          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3524          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3525          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3526          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3527          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3528            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3529            _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3530            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3531          fi
3532          output_verbose_link_cmd='echo'
3533        else
3534          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3535        fi
3536        ;;
3537    osf3*)    osf3*)
3538      case $cc_basename in      case $cc_basename in
3539        KCC)        KCC*)
3540          # Kuck and Associates, Inc. (KAI) C++ Compiler          # Kuck and Associates, Inc. (KAI) C++ Compiler
3541    
3542          # KCC will only create a shared library if the output file          # KCC will only create a shared library if the output file
# Line 3172  case $host_os in Line 3552  case $host_os in
3552          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3553    
3554          ;;          ;;
3555        RCC)        RCC*)
3556          # Rational C++ 2.4.1          # Rational C++ 2.4.1
3557          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3558          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3559          ;;          ;;
3560        cxx)        cxx*)
3561          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3562          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3563    
3564          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3565          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
# Line 3197  case $host_os in Line 3577  case $host_os in
3577        *)        *)
3578          if test "$GXX" = yes && test "$with_gnu_ld" = no; then          if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3579            _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'            _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3580            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3581    
3582            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3583            _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:            _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
# Line 3216  case $host_os in Line 3596  case $host_os in
3596      ;;      ;;
3597    osf4* | osf5*)    osf4* | osf5*)
3598      case $cc_basename in      case $cc_basename in
3599        KCC)        KCC*)
3600          # Kuck and Associates, Inc. (KAI) C++ Compiler          # Kuck and Associates, Inc. (KAI) C++ Compiler
3601    
3602          # KCC will only create a shared library if the output file          # KCC will only create a shared library if the output file
# Line 3231  case $host_os in Line 3611  case $host_os in
3611          # the KAI C++ compiler.          # the KAI C++ compiler.
3612          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3613          ;;          ;;
3614        RCC)        RCC*)
3615          # Rational C++ 2.4.1          # Rational C++ 2.4.1
3616          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3617          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3618          ;;          ;;
3619        cxx)        cxx*)
3620          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3621          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3622          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3623            echo "-hidden">> $lib.exp~            echo "-hidden">> $lib.exp~
3624            $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~            $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3625            $rm $lib.exp'            $rm $lib.exp'
3626    
3627          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
# Line 3260  case $host_os in Line 3640  case $host_os in
3640        *)        *)
3641          if test "$GXX" = yes && test "$with_gnu_ld" = no; then          if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3642            _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'            _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3643           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3644    
3645            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3646            _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:            _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
# Line 3281  case $host_os in Line 3661  case $host_os in
3661      # FIXME: insert proper C++ library support      # FIXME: insert proper C++ library support
3662      _LT_AC_TAGVAR(ld_shlibs, $1)=no      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3663      ;;      ;;
   sco*)  
     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no  
     case $cc_basename in  
       CC)  
         # FIXME: insert proper C++ library support  
         _LT_AC_TAGVAR(ld_shlibs, $1)=no  
         ;;  
       *)  
         # FIXME: insert proper C++ library support  
         _LT_AC_TAGVAR(ld_shlibs, $1)=no  
         ;;  
     esac  
     ;;  
3664    sunos4*)    sunos4*)
3665      case $cc_basename in      case $cc_basename in
3666        CC)        CC*)
3667          # Sun C++ 4.x          # Sun C++ 4.x
3668          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3669          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3670          ;;          ;;
3671        lcc)        lcc*)
3672          # Lucid          # Lucid
3673          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3674          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
# Line 3314  case $host_os in Line 3681  case $host_os in
3681      ;;      ;;
3682    solaris*)    solaris*)
3683      case $cc_basename in      case $cc_basename in
3684        CC)        CC*)
3685          # Sun C++ 4.2, 5.x and Centerline C++          # Sun C++ 4.2, 5.x and Centerline C++
3686            _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3687          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3688          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3689          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3690          $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'          $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3691    
3692          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3693          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3694          case $host_os in          case $host_os in
3695            solaris2.[0-5] | solaris2.[0-5].*) ;;            solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3696            *)            *)
3697              # The C++ compiler is used as linker so we must use $wl              # The compiler driver will combine and reorder linker options,
3698              # flag to pass the commands to the underlying system              # but understands `-z linker_flag'.
             # linker.  
3699              # Supported since Solaris 2.6 (maybe 2.5.1?)              # Supported since Solaris 2.6 (maybe 2.5.1?)
3700              _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'              _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3701              ;;              ;;
3702          esac          esac
3703          _LT_AC_TAGVAR(link_all_deplibs, $1)=yes          _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3704    
3705          # Commands to make compiler produce verbose output that lists          output_verbose_link_cmd='echo'
         # what "hidden" libraries, object files and flags are used when  
         # linking a shared library.  
         #  
         # There doesn't appear to be a way to prevent this compiler from  
         # explicitly linking system object files so we need to strip them  
         # from the output so that they don't get included in the library  
         # dependencies.  
         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'  
3706    
3707          # Archives containing C++ object files must be created using          # Archives containing C++ object files must be created using
3708          # "CC -xar", where "CC" is the Sun C++ compiler.  This is          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
# Line 3351  case $host_os in Line 3710  case $host_os in
3710          # in the archive.          # in the archive.
3711          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3712          ;;          ;;
3713        gcx)        gcx*)
3714          # Green Hills C++ Compiler          # Green Hills C++ Compiler
3715          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3716    
# Line 3385  case $host_os in Line 3744  case $host_os in
3744            fi            fi
3745    
3746            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3747              case $host_os in
3748              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3749              *)
3750                _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3751                ;;
3752              esac
3753          fi          fi
3754          ;;          ;;
3755      esac      esac
3756      ;;      ;;
3757    sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3758        _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3759        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3760        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3761        runpath_var='LD_RUN_PATH'
3762    
3763        case $cc_basename in
3764          CC*)
3765            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3766            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3767            ;;
3768          *)
3769            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3770            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3771            ;;
3772        esac
3773        ;;
3774      sysv5* | sco3.2v5* | sco5v6*)
3775        # Note: We can NOT use -z defs as we might desire, because we do not
3776        # link with -lc, and that would cause any symbols used from libc to
3777        # always be unresolved, which means just about no library would
3778        # ever link correctly.  If we're not using GNU ld we use -z text
3779        # though, which does catch some bad symbols but isn't as heavy-handed
3780        # as -z defs.
3781        # For security reasons, it is highly recommended that you always
3782        # use absolute paths for naming shared libraries, and exclude the
3783        # DT_RUNPATH tag from executables and libraries.  But doing so
3784        # requires that you compile everything twice, which is a pain.
3785        # So that behaviour is only enabled if SCOABSPATH is set to a
3786        # non-empty value in the environment.  Most likely only useful for
3787        # creating official distributions of packages.
3788        # This is a hack until libtool officially supports absolute path
3789        # names for shared libraries.
3790        _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3791        _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3792      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3793        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3794        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3795        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3796        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3797        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3798        runpath_var='LD_RUN_PATH'
3799    
3800        case $cc_basename in
3801          CC*)
3802            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3803            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3804            ;;
3805          *)
3806            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3807            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3808            ;;
3809        esac
3810      ;;      ;;
3811    tandem*)    tandem*)
3812      case $cc_basename in      case $cc_basename in
3813        NCC)        NCC*)
3814          # NonStop-UX NCC 3.20          # NonStop-UX NCC 3.20
3815          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
3816          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
# Line 3425  AC_LIBTOOL_PROG_COMPILER_PIC($1) Line 3841  AC_LIBTOOL_PROG_COMPILER_PIC($1)
3841  AC_LIBTOOL_PROG_CC_C_O($1)  AC_LIBTOOL_PROG_CC_C_O($1)
3842  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3843  AC_LIBTOOL_PROG_LD_SHLIBS($1)  AC_LIBTOOL_PROG_LD_SHLIBS($1)
 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)  
 AC_LIBTOOL_SYS_LIB_STRIP  
3844  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3845  AC_LIBTOOL_DLOPEN_SELF($1)  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3846    
3847  AC_LIBTOOL_CONFIG($1)  AC_LIBTOOL_CONFIG($1)
3848    
# Line 3446  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld Line 3860  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3860  ])# AC_LIBTOOL_LANG_CXX_CONFIG  ])# AC_LIBTOOL_LANG_CXX_CONFIG
3861    
3862  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3863  # ------------------------  # ------------------------------------
3864  # Figure out "hidden" library dependencies from verbose  # Figure out "hidden" library dependencies from verbose
3865  # compiler output when linking a shared library.  # compiler output when linking a shared library.
3866  # Parse the compiler output and extract the necessary  # Parse the compiler output and extract the necessary
3867  # objects, libraries and library flags.  # objects, libraries and library flags.
3868  AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[  AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3869    [AC_REQUIRE([LT_AC_PROG_SED])dnl
3870  dnl we can't use the lt_simple_compile_test_code here,  dnl we can't use the lt_simple_compile_test_code here,
3871  dnl because it contains code intended for an executable,  dnl because it contains code intended for an executable,
3872  dnl not a library.  It's possible we should let each  dnl not a library.  It's possible we should let each
# Line 3500  if AC_TRY_EVAL(ac_compile); then Line 3915  if AC_TRY_EVAL(ac_compile); then
3915    # The `*' in the case matches for architectures that use `case' in    # The `*' in the case matches for architectures that use `case' in
3916    # $output_verbose_cmd can trigger glob expansion during the loop    # $output_verbose_cmd can trigger glob expansion during the loop
3917    # eval without this substitution.    # eval without this substitution.
3918    output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"    output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3919    
3920    for p in `eval $output_verbose_link_cmd`; do    for p in `eval $output_verbose_link_cmd`; do
3921      case $p in      case $p in
# Line 3576  fi Line 3991  fi
3991    
3992  $rm -f confest.$objext  $rm -f confest.$objext
3993    
3994    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3995    if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3996      _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
3997    fi
3998    
3999    # PORTME: override above test on systems where it is broken
4000    ifelse([$1],[CXX],
4001    [case $host_os in
4002    interix[[3-9]]*)
4003      # Interix 3.5 installs completely hosed .la files for C++, so rather than
4004      # hack all around it, let's just trust "g++" to DTRT.
4005      _LT_AC_TAGVAR(predep_objects,$1)=
4006      _LT_AC_TAGVAR(postdep_objects,$1)=
4007      _LT_AC_TAGVAR(postdeps,$1)=
4008      ;;
4009    
4010    linux*)
4011      case `$CC -V 2>&1 | sed 5q` in
4012      *Sun\ C*)
4013        # Sun C++ 5.9
4014        #
4015        # The more standards-conforming stlport4 library is
4016        # incompatible with the Cstd library. Avoid specifying
4017        # it if it's in CXXFLAGS. Ignore libCrun as
4018        # -library=stlport4 depends on it.
4019        case " $CXX $CXXFLAGS " in
4020        *" -library=stlport4 "*)
4021          solaris_use_stlport4=yes
4022          ;;
4023        esac
4024        if test "$solaris_use_stlport4" != yes; then
4025          _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4026        fi
4027        ;;
4028      esac
4029      ;;
4030    
4031    solaris*)
4032      case $cc_basename in
4033      CC*)
4034        # The more standards-conforming stlport4 library is
4035        # incompatible with the Cstd library. Avoid specifying
4036        # it if it's in CXXFLAGS. Ignore libCrun as
4037        # -library=stlport4 depends on it.
4038        case " $CXX $CXXFLAGS " in
4039        *" -library=stlport4 "*)
4040          solaris_use_stlport4=yes
4041          ;;
4042        esac
4043    
4044        # Adding this requires a known-good setup of shared libraries for
4045        # Sun compiler versions before 5.6, else PIC objects from an old
4046        # archive will be linked into the output, leading to subtle bugs.
4047        if test "$solaris_use_stlport4" != yes; then
4048          _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4049        fi
4050        ;;
4051      esac
4052      ;;
4053    esac
4054    ])
4055  case " $_LT_AC_TAGVAR(postdeps, $1) " in  case " $_LT_AC_TAGVAR(postdeps, $1) " in
4056  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4057  esac  esac
4058  ])# AC_LIBTOOL_POSTDEP_PREDEP  ])# AC_LIBTOOL_POSTDEP_PREDEP
4059    
4060  # AC_LIBTOOL_LANG_F77_CONFIG  # AC_LIBTOOL_LANG_F77_CONFIG
4061  # ------------------------  # --------------------------
4062  # Ensure that the configuration vars for the C compiler are  # Ensure that the configuration vars for the C compiler are
4063  # suitably defined.  Those variables are subsequently used by  # suitably defined.  Those variables are subsequently used by
4064  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
# Line 3618  objext=o Line 4094  objext=o
4094  _LT_AC_TAGVAR(objext, $1)=$objext  _LT_AC_TAGVAR(objext, $1)=$objext
4095    
4096  # Code to be used in simple compile tests  # Code to be used in simple compile tests
4097  lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"  lt_simple_compile_test_code="\
4098          subroutine t
4099          return
4100          end
4101    "
4102    
4103  # Code to be used in simple link tests  # Code to be used in simple link tests
4104  lt_simple_link_test_code="      program t\n      end\n"  lt_simple_link_test_code="\
4105          program t
4106          end
4107    "
4108    
4109  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4110  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
4111    
4112    # save warnings/boilerplate of simple test code
4113    _LT_COMPILER_BOILERPLATE
4114    _LT_LINKER_BOILERPLATE
4115    
4116  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
4117  lt_save_CC="$CC"  lt_save_CC="$CC"
4118  CC=${F77-"f77"}  CC=${F77-"f77"}
4119  compiler=$CC  compiler=$CC
4120  _LT_AC_TAGVAR(compiler, $1)=$CC  _LT_AC_TAGVAR(compiler, $1)=$CC
4121  cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`  _LT_CC_BASENAME([$compiler])
4122    
4123  AC_MSG_CHECKING([if libtool supports shared libraries])  AC_MSG_CHECKING([if libtool supports shared libraries])
4124  AC_MSG_RESULT([$can_build_shared])  AC_MSG_RESULT([$can_build_shared])
# Line 3641  test "$can_build_shared" = "no" && enabl Line 4128  test "$can_build_shared" = "no" && enabl
4128    
4129  # On AIX, shared libraries and static libraries use the same namespace, and  # On AIX, shared libraries and static libraries use the same namespace, and
4130  # are all built from PIC.  # are all built from PIC.
4131  case "$host_os" in  case $host_os in
4132  aix3*)  aix3*)
4133    test "$enable_shared" = yes && enable_static=no    test "$enable_shared" = yes && enable_static=no
4134    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
# Line 3649  aix3*) Line 4136  aix3*)
4136      postinstall_cmds='$RANLIB $lib'      postinstall_cmds='$RANLIB $lib'
4137    fi    fi
4138    ;;    ;;
4139  aix4*)  aix[[4-9]]*)
4140    test "$enable_shared" = yes && enable_static=no    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4141        test "$enable_shared" = yes && enable_static=no
4142      fi
4143    ;;    ;;
4144  esac  esac
4145  AC_MSG_RESULT([$enable_shared])  AC_MSG_RESULT([$enable_shared])
# Line 3660  AC_MSG_CHECKING([whether to build static Line 4149  AC_MSG_CHECKING([whether to build static
4149  test "$enable_shared" = yes || enable_static=yes  test "$enable_shared" = yes || enable_static=yes
4150  AC_MSG_RESULT([$enable_static])  AC_MSG_RESULT([$enable_static])
4151    
 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no  
   
4152  _LT_AC_TAGVAR(GCC, $1)="$G77"  _LT_AC_TAGVAR(GCC, $1)="$G77"
4153  _LT_AC_TAGVAR(LD, $1)="$LD"  _LT_AC_TAGVAR(LD, $1)="$LD"
4154    
# Line 3669  AC_LIBTOOL_PROG_COMPILER_PIC($1) Line 4156  AC_LIBTOOL_PROG_COMPILER_PIC($1)
4156  AC_LIBTOOL_PROG_CC_C_O($1)  AC_LIBTOOL_PROG_CC_C_O($1)
4157  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4158  AC_LIBTOOL_PROG_LD_SHLIBS($1)  AC_LIBTOOL_PROG_LD_SHLIBS($1)
 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)  
 AC_LIBTOOL_SYS_LIB_STRIP  
4159  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4160    AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4161    
4162  AC_LIBTOOL_CONFIG($1)  AC_LIBTOOL_CONFIG($1)
4163    
# Line 3697  objext=o Line 4183  objext=o
4183  _LT_AC_TAGVAR(objext, $1)=$objext  _LT_AC_TAGVAR(objext, $1)=$objext
4184    
4185  # Code to be used in simple compile tests  # Code to be used in simple compile tests
4186  lt_simple_compile_test_code="class foo {}\n"  lt_simple_compile_test_code="class foo {}"
4187    
4188  # Code to be used in simple link tests  # Code to be used in simple link tests
4189  lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'  lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4190    
4191  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4192  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
4193    
4194    # save warnings/boilerplate of simple test code
4195    _LT_COMPILER_BOILERPLATE
4196    _LT_LINKER_BOILERPLATE
4197    
4198  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
4199  lt_save_CC="$CC"  lt_save_CC="$CC"
4200  CC=${GCJ-"gcj"}  CC=${GCJ-"gcj"}
4201  compiler=$CC  compiler=$CC
4202  _LT_AC_TAGVAR(compiler, $1)=$CC  _LT_AC_TAGVAR(compiler, $1)=$CC
4203    _LT_CC_BASENAME([$compiler])
4204    
4205  # GCJ did not exist at the time GCC didn't implicitly link libc in.  # GCJ did not exist at the time GCC didn't implicitly link libc in.
4206  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4207    
4208    _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4209    
4210  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4211  AC_LIBTOOL_PROG_COMPILER_PIC($1)  AC_LIBTOOL_PROG_COMPILER_PIC($1)
4212  AC_LIBTOOL_PROG_CC_C_O($1)  AC_LIBTOOL_PROG_CC_C_O($1)
4213  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4214  AC_LIBTOOL_PROG_LD_SHLIBS($1)  AC_LIBTOOL_PROG_LD_SHLIBS($1)
 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)  
 AC_LIBTOOL_SYS_LIB_STRIP  
4215  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4216  AC_LIBTOOL_DLOPEN_SELF($1)  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4217    
4218  AC_LIBTOOL_CONFIG($1)  AC_LIBTOOL_CONFIG($1)
4219    
# Line 3732  CC="$lt_save_CC" Line 4223  CC="$lt_save_CC"
4223    
4224    
4225  # AC_LIBTOOL_LANG_RC_CONFIG  # AC_LIBTOOL_LANG_RC_CONFIG
4226  # --------------------------  # -------------------------
4227  # Ensure that the configuration vars for the Windows resource compiler are  # Ensure that the configuration vars for the Windows resource compiler are
4228  # suitably defined.  Those variables are subsequently used by  # suitably defined.  Those variables are subsequently used by
4229  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
# Line 3748  objext=o Line 4239  objext=o
4239  _LT_AC_TAGVAR(objext, $1)=$objext  _LT_AC_TAGVAR(objext, $1)=$objext
4240    
4241  # Code to be used in simple compile tests  # Code to be used in simple compile tests
4242  lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'  lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4243    
4244  # Code to be used in simple link tests  # Code to be used in simple link tests
4245  lt_simple_link_test_code="$lt_simple_compile_test_code"  lt_simple_link_test_code="$lt_simple_compile_test_code"
# Line 3756  lt_simple_link_test_code="$lt_simple_com Line 4247  lt_simple_link_test_code="$lt_simple_com
4247  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4248  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
4249    
4250    # save warnings/boilerplate of simple test code
4251    _LT_COMPILER_BOILERPLATE
4252    _LT_LINKER_BOILERPLATE
4253    
4254  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
4255  lt_save_CC="$CC"  lt_save_CC="$CC"
4256  CC=${RC-"windres"}  CC=${RC-"windres"}
4257  compiler=$CC  compiler=$CC
4258  _LT_AC_TAGVAR(compiler, $1)=$CC  _LT_AC_TAGVAR(compiler, $1)=$CC
4259    _LT_CC_BASENAME([$compiler])
4260  _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes  _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4261    
4262  AC_LIBTOOL_CONFIG($1)  AC_LIBTOOL_CONFIG($1)
# Line 3786  if test -f "$ltmain"; then Line 4282  if test -f "$ltmain"; then
4282    # without removal of \ escapes.    # without removal of \ escapes.
4283    if test -n "${ZSH_VERSION+set}" ; then    if test -n "${ZSH_VERSION+set}" ; then
4284      setopt NO_GLOB_SUBST      setopt NO_GLOB_SUBST
4285    fi      fi
4286    # Now quote all the things that may contain metacharacters while being    # Now quote all the things that may contain metacharacters while being
4287    # careful not to overquote the AC_SUBSTed values.  We take copies of the    # careful not to overquote the AC_SUBSTed values.  We take copies of the
4288    # variables and quote the copies for generation of the libtool script.    # variables and quote the copies for generation of the libtool script.
4289    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4290        SED SHELL STRIP \
4291      libname_spec library_names_spec soname_spec extract_expsyms_cmds \      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4292      old_striplib striplib file_magic_cmd finish_cmds finish_eval \      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4293      deplibs_check_method reload_flag reload_cmds need_locks \      deplibs_check_method reload_flag reload_cmds need_locks \
# Line 3816  if test -f "$ltmain"; then Line 4313  if test -f "$ltmain"; then
4313      _LT_AC_TAGVAR(predeps, $1) \      _LT_AC_TAGVAR(predeps, $1) \
4314      _LT_AC_TAGVAR(postdeps, $1) \      _LT_AC_TAGVAR(postdeps, $1) \
4315      _LT_AC_TAGVAR(compiler_lib_search_path, $1) \      _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4316        _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4317      _LT_AC_TAGVAR(archive_cmds, $1) \      _LT_AC_TAGVAR(archive_cmds, $1) \
4318      _LT_AC_TAGVAR(archive_expsym_cmds, $1) \      _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4319      _LT_AC_TAGVAR(postinstall_cmds, $1) \      _LT_AC_TAGVAR(postinstall_cmds, $1) \
# Line 3831  if test -f "$ltmain"; then Line 4329  if test -f "$ltmain"; then
4329      _LT_AC_TAGVAR(module_cmds, $1) \      _LT_AC_TAGVAR(module_cmds, $1) \
4330      _LT_AC_TAGVAR(module_expsym_cmds, $1) \      _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4331      _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \      _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4332        _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4333      _LT_AC_TAGVAR(exclude_expsyms, $1) \      _LT_AC_TAGVAR(exclude_expsyms, $1) \
4334      _LT_AC_TAGVAR(include_expsyms, $1); do      _LT_AC_TAGVAR(include_expsyms, $1); do
4335    
# Line 3840  if test -f "$ltmain"; then Line 4339  if test -f "$ltmain"; then
4339      _LT_AC_TAGVAR(archive_cmds, $1) | \      _LT_AC_TAGVAR(archive_cmds, $1) | \
4340      _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \      _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4341      _LT_AC_TAGVAR(module_cmds, $1) | \      _LT_AC_TAGVAR(module_cmds, $1) | \
4342      _LT_AC_TAGVAR(module_expsym_cmds, $1) | \        _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4343      _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \      _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4344      _LT_AC_TAGVAR(export_symbols_cmds, $1) | \      _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4345      extract_expsyms_cmds | reload_cmds | finish_cmds | \      extract_expsyms_cmds | reload_cmds | finish_cmds | \
# Line 3877  ifelse([$1], [], Line 4376  ifelse([$1], [],
4376  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4377  # NOTE: Changes made to this file will be lost: look at ltmain.sh.  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4378  #  #
4379  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4380  # Free Software Foundation, Inc.  # Free Software Foundation, Inc.
4381  #  #
4382  # This file is part of GNU Libtool:  # This file is part of GNU Libtool:
# Line 3895  ifelse([$1], [], Line 4394  ifelse([$1], [],
4394  #  #
4395  # You should have received a copy of the GNU General Public License  # You should have received a copy of the GNU General Public License
4396  # along with this program; if not, write to the Free Software  # along with this program; if not, write to the Free Software
4397  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4398  #  #
4399  # As a special exception to the GNU General Public License, if you  # As a special exception to the GNU General Public License, if you
4400  # distribute this file as part of a program that contains a  # distribute this file as part of a program that contains a
# Line 3906  ifelse([$1], [], Line 4405  ifelse([$1], [],
4405  SED=$lt_SED  SED=$lt_SED
4406    
4407  # Sed that helps us avoid accidentally triggering echo(1) options like -n.  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4408  Xsed="$SED -e s/^X//"  Xsed="$SED -e 1s/^X//"
4409    
4410  # The HP-UX ksh and POSIX shell print the target directory to stdout  # The HP-UX ksh and POSIX shell print the target directory to stdout
4411  # if CDPATH is set.  # if CDPATH is set.
4412  if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4413    
4414  # The names of the tagged configurations supported by this script.  # The names of the tagged configurations supported by this script.
4415  available_tags=  available_tags=
# Line 3941  fast_install=$enable_fast_install Line 4440  fast_install=$enable_fast_install
4440  # The host system.  # The host system.
4441  host_alias=$host_alias  host_alias=$host_alias
4442  host=$host  host=$host
4443    host_os=$host_os
4444    
4445    # The build system.
4446    build_alias=$build_alias
4447    build=$build
4448    build_os=$build_os
4449    
4450  # An echo program that does not interpret backslashes.  # An echo program that does not interpret backslashes.
4451  echo=$lt_echo  echo=$lt_echo
# Line 3952  AR_FLAGS=$lt_AR_FLAGS Line 4457  AR_FLAGS=$lt_AR_FLAGS
4457  # A C compiler.  # A C compiler.
4458  LTCC=$lt_LTCC  LTCC=$lt_LTCC
4459    
4460    # LTCC compiler flags.
4461    LTCFLAGS=$lt_LTCFLAGS
4462    
4463  # A language-specific compiler.  # A language-specific compiler.
4464  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4465    
# Line 3971  LN_S=$lt_LN_S Line 4479  LN_S=$lt_LN_S
4479  NM=$lt_NM  NM=$lt_NM
4480    
4481  # A symbol stripping program  # A symbol stripping program
4482  STRIP=$STRIP  STRIP=$lt_STRIP
4483    
4484  # Used to examine libraries when file_magic_cmd begins "file"  # Used to examine libraries when file_magic_cmd begins "file"
4485  MAGIC_CMD=$MAGIC_CMD  MAGIC_CMD=$MAGIC_CMD
# Line 4002  objext="$ac_objext" Line 4510  objext="$ac_objext"
4510  libext="$libext"  libext="$libext"
4511    
4512  # Shared library suffix (normally ".so").  # Shared library suffix (normally ".so").
4513  shrext='$shrext'  shrext_cmds='$shrext_cmds'
4514    
4515  # Executable file suffix (normally "").  # Executable file suffix (normally "").
4516  exeext="$exeext"  exeext="$exeext"
# Line 4017  max_cmd_len=$lt_cv_sys_max_cmd_len Line 4525  max_cmd_len=$lt_cv_sys_max_cmd_len
4525  # Does compiler simultaneously support -c and -o options?  # Does compiler simultaneously support -c and -o options?
4526  compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)  compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4527    
4528  # Must we lock files when doing compilation ?  # Must we lock files when doing compilation?
4529  need_locks=$lt_need_locks  need_locks=$lt_need_locks
4530    
4531  # Do we need the lib prefix for modules?  # Do we need the lib prefix for modules?
# Line 4105  predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) Line 4613  predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4613  # shared library.  # shared library.
4614  postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)  postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4615    
4616    # The directories searched by this compiler when creating a shared
4617    # library
4618    compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4619    
4620  # The library search path used internally by the compiler when linking  # The library search path used internally by the compiler when linking
4621  # a shared library.  # a shared library.
4622  compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)  compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
# Line 4193  sys_lib_search_path_spec=$lt_sys_lib_sea Line 4705  sys_lib_search_path_spec=$lt_sys_lib_sea
4705  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4706    
4707  # Fix the shell variable \$srcfile for the compiler.  # Fix the shell variable \$srcfile for the compiler.
4708  fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"  fix_srcfile_path=$lt_fix_srcfile_path
4709    
4710  # Set to yes if exported symbols are required.  # Set to yes if exported symbols are required.
4711  always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)  always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
# Line 4246  else Line 4758  else
4758    # If there is no Makefile yet, we rely on a make rule to execute    # If there is no Makefile yet, we rely on a make rule to execute
4759    # `config.status --recheck' to rerun these tests and create the    # `config.status --recheck' to rerun these tests and create the
4760    # libtool script then.    # libtool script then.
4761    test -f Makefile && make "$ltmain"    ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4762      if test -f "$ltmain_in"; then
4763        test -f Makefile && make "$ltmain"
4764      fi
4765  fi  fi
4766  ])# AC_LIBTOOL_CONFIG  ])# AC_LIBTOOL_CONFIG
4767    
# Line 4273  fi Line 4788  fi
4788  # ---------------------------------  # ---------------------------------
4789  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4790  [AC_REQUIRE([AC_CANONICAL_HOST])  [AC_REQUIRE([AC_CANONICAL_HOST])
4791    AC_REQUIRE([LT_AC_PROG_SED])
4792  AC_REQUIRE([AC_PROG_NM])  AC_REQUIRE([AC_PROG_NM])
4793  AC_REQUIRE([AC_OBJEXT])  AC_REQUIRE([AC_OBJEXT])
4794  # Check for command to grab the raw symbol name followed by C symbol from nm.  # Check for command to grab the raw symbol name followed by C symbol from nm.
# Line 4288  symcode='[[BCDEGRST]]' Line 4804  symcode='[[BCDEGRST]]'
4804  # Regexp to match symbols that can be accessed directly from C.  # Regexp to match symbols that can be accessed directly from C.
4805  sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'  sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4806    
 # Transform the above into a raw symbol and a C symbol.  
 symxfrm='\1 \2\3 \3'  
   
4807  # Transform an extracted symbol line into a proper C declaration  # Transform an extracted symbol line into a proper C declaration
4808  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4809    
# Line 4312  hpux*) # Its linker distinguishes data f Line 4825  hpux*) # Its linker distinguishes data f
4825    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4826    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4827    ;;    ;;
4828    linux* | k*bsd*-gnu)
4829      if test "$host_cpu" = ia64; then
4830        symcode='[[ABCDGIRSTW]]'
4831        lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4832        lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4833      fi
4834      ;;
4835  irix* | nonstopux*)  irix* | nonstopux*)
4836    symcode='[[BCDEGRST]]'    symcode='[[BCDEGRST]]'
4837    ;;    ;;
4838  osf*)  osf*)
4839    symcode='[[BCDEGQRST]]'    symcode='[[BCDEGQRST]]'
4840    ;;    ;;
4841  solaris* | sysv5*)  solaris*)
4842    symcode='[[BDT]]'    symcode='[[BDRT]]'
4843      ;;
4844    sco3.2v5*)
4845      symcode='[[DT]]'
4846      ;;
4847    sysv4.2uw2*)
4848      symcode='[[DT]]'
4849      ;;
4850    sysv5* | sco5v6* | unixware* | OpenUNIX*)
4851      symcode='[[ABDT]]'
4852    ;;    ;;
4853  sysv4)  sysv4)
4854    symcode='[[DFNSTU]]'    symcode='[[DFNSTU]]'
# Line 4337  esac Line 4866  esac
4866  # If we're using GNU nm, then use its standard symbol codes.  # If we're using GNU nm, then use its standard symbol codes.
4867  case `$NM -V 2>&1` in  case `$NM -V 2>&1` in
4868  *GNU* | *'with BFD'*)  *GNU* | *'with BFD'*)
4869    symcode='[[ABCDGISTW]]' ;;    symcode='[[ABCDGIRSTW]]' ;;
4870  esac  esac
4871    
4872  # Try without a prefix undercore, then with it.  # Try without a prefix undercore, then with it.
4873  for ac_symprfx in "" "_"; do  for ac_symprfx in "" "_"; do
4874    
4875      # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4876      symxfrm="\\1 $ac_symprfx\\2 \\2"
4877    
4878    # Write the raw and C identifiers.    # Write the raw and C identifiers.
4879    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4880    
4881    # Check to see that the pipe works correctly.    # Check to see that the pipe works correctly.
4882    pipe_works=no    pipe_works=no
# Line 4434  EOF Line 4966  EOF
4966      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4967      cat conftest.$ac_ext >&5      cat conftest.$ac_ext >&5
4968    fi    fi
4969    rm -f conftest* conftst*    rm -rf conftest* conftst*
4970    
4971    # Do not use the global_symbol_pipe unless it works.    # Do not use the global_symbol_pipe unless it works.
4972    if test "$pipe_works" = yes; then    if test "$pipe_works" = yes; then
# Line 4483  AC_MSG_CHECKING([for $compiler option to Line 5015  AC_MSG_CHECKING([for $compiler option to
5015        # like `-m68040'.        # like `-m68040'.
5016        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5017        ;;        ;;
5018      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5019        # PIC is the default for these OSes.        # PIC is the default for these OSes.
5020        ;;        ;;
5021      mingw* | os2* | pw32*)      mingw* | cygwin* | os2* | pw32*)
5022        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
5023        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
5024        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'        # Although the cygwin gcc ignores -fPIC, still need this for old-style
5025          # (--disable-auto-import) libraries
5026          m4_if([$1], [GCJ], [],
5027            [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5028        ;;        ;;
5029      darwin* | rhapsody*)      darwin* | rhapsody*)
5030        # PIC is the default on this platform        # PIC is the default on this platform
# Line 4500  AC_MSG_CHECKING([for $compiler option to Line 5035  AC_MSG_CHECKING([for $compiler option to
5035        # DJGPP does not support shared libraries at all        # DJGPP does not support shared libraries at all
5036        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5037        ;;        ;;
5038        interix[[3-9]]*)
5039          # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5040          # Instead, we relocate shared libraries at runtime.
5041          ;;
5042      sysv4*MP*)      sysv4*MP*)
5043        if test -d /usr/nec; then        if test -d /usr/nec; then
5044          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
# Line 4508  AC_MSG_CHECKING([for $compiler option to Line 5047  AC_MSG_CHECKING([for $compiler option to
5047      hpux*)      hpux*)
5048        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5049        # not for PA HP-UX.        # not for PA HP-UX.
5050        case "$host_cpu" in        case $host_cpu in
5051        hppa*64*|ia64*)        hppa*64*|ia64*)
5052          ;;          ;;
5053        *)        *)
# Line 4522  AC_MSG_CHECKING([for $compiler option to Line 5061  AC_MSG_CHECKING([for $compiler option to
5061      esac      esac
5062    else    else
5063      case $host_os in      case $host_os in
5064        aix4* | aix5*)        aix[[4-9]]*)
5065          # All AIX code is PIC.          # All AIX code is PIC.
5066          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
5067            # AIX 5 now supports IA64 processor            # AIX 5 now supports IA64 processor
# Line 4533  AC_MSG_CHECKING([for $compiler option to Line 5072  AC_MSG_CHECKING([for $compiler option to
5072          ;;          ;;
5073        chorus*)        chorus*)
5074          case $cc_basename in          case $cc_basename in
5075          cxch68)          cxch68*)
5076            # Green Hills C++ Compiler            # Green Hills C++ Compiler
5077            # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"            # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5078            ;;            ;;
5079          esac          esac
5080          ;;          ;;
5081           darwin*)
5082             # PIC is the default on this platform
5083             # Common symbols not allowed in MH_DYLIB files
5084             case $cc_basename in
5085               xlc*)
5086               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5087               _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5088               ;;
5089             esac
5090           ;;
5091        dgux*)        dgux*)
5092          case $cc_basename in          case $cc_basename in
5093            ec++)            ec++*)
5094              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5095              ;;              ;;
5096            ghcx)            ghcx*)
5097              # Green Hills C++ Compiler              # Green Hills C++ Compiler
5098              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5099              ;;              ;;
# Line 4552  AC_MSG_CHECKING([for $compiler option to Line 5101  AC_MSG_CHECKING([for $compiler option to
5101              ;;              ;;
5102          esac          esac
5103          ;;          ;;
5104        freebsd*)        freebsd* | dragonfly*)
5105          # FreeBSD uses GNU C++          # FreeBSD uses GNU C++
5106          ;;          ;;
5107        hpux9* | hpux10* | hpux11*)        hpux9* | hpux10* | hpux11*)
5108          case $cc_basename in          case $cc_basename in
5109            CC)            CC*)
5110              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5111              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5112              if test "$host_cpu" != ia64; then              if test "$host_cpu" != ia64; then
5113                _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'                _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5114              fi              fi
5115              ;;              ;;
5116            aCC)            aCC*)
5117              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5118              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5119              case "$host_cpu" in              case $host_cpu in
5120              hppa*64*|ia64*)              hppa*64*|ia64*)
5121                # +Z the default                # +Z the default
5122                ;;                ;;
# Line 4580  AC_MSG_CHECKING([for $compiler option to Line 5129  AC_MSG_CHECKING([for $compiler option to
5129              ;;              ;;
5130          esac          esac
5131          ;;          ;;
5132          interix*)
5133            # This is c89, which is MS Visual C++ (no shared libs)
5134            # Anyone wants to do a port?
5135            ;;
5136        irix5* | irix6* | nonstopux*)        irix5* | irix6* | nonstopux*)
5137          case $cc_basename in          case $cc_basename in
5138            CC)            CC*)
5139              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5140              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5141              # CC pic flag -KPIC is the default.              # CC pic flag -KPIC is the default.
# Line 4591  AC_MSG_CHECKING([for $compiler option to Line 5144  AC_MSG_CHECKING([for $compiler option to
5144              ;;              ;;
5145          esac          esac
5146          ;;          ;;
5147        linux*)        linux* | k*bsd*-gnu)
5148          case $cc_basename in          case $cc_basename in
5149            KCC)            KCC*)
5150              # KAI C++ Compiler              # KAI C++ Compiler
5151              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5152              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5153              ;;              ;;
5154            icpc)            icpc* | ecpc*)
5155              # Intel C++              # Intel C++
5156              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5157              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5158              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5159              ;;              ;;
5160            cxx)            pgCC* | pgcpp*)
5161                # Portland Group C++ compiler.
5162                _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5163                _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5164                _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5165                ;;
5166              cxx*)
5167              # Compaq C++              # Compaq C++
5168              # Make sure the PIC flag is empty.  It appears that all Alpha              # Make sure the PIC flag is empty.  It appears that all Alpha
5169              # Linux and Compaq Tru64 Unix objects are PIC.              # Linux and Compaq Tru64 Unix objects are PIC.
# Line 4612  AC_MSG_CHECKING([for $compiler option to Line 5171  AC_MSG_CHECKING([for $compiler option to
5171              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5172              ;;              ;;
5173            *)            *)
5174                case `$CC -V 2>&1 | sed 5q` in
5175                *Sun\ C*)
5176                  # Sun C++ 5.9
5177                  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5178                  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5179                  _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5180                  ;;
5181                esac
5182              ;;              ;;
5183          esac          esac
5184          ;;          ;;
# Line 4621  AC_MSG_CHECKING([for $compiler option to Line 5188  AC_MSG_CHECKING([for $compiler option to
5188          ;;          ;;
5189        mvs*)        mvs*)
5190          case $cc_basename in          case $cc_basename in
5191            cxx)            cxx*)
5192              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5193              ;;              ;;
5194            *)            *)
# Line 4632  AC_MSG_CHECKING([for $compiler option to Line 5199  AC_MSG_CHECKING([for $compiler option to
5199          ;;          ;;
5200        osf3* | osf4* | osf5*)        osf3* | osf4* | osf5*)
5201          case $cc_basename in          case $cc_basename in
5202            KCC)            KCC*)
5203              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5204              ;;              ;;
5205            RCC)            RCC*)
5206              # Rational C++ 2.4.1              # Rational C++ 2.4.1
5207              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5208              ;;              ;;
5209            cxx)            cxx*)
5210              # Digital/Compaq C++              # Digital/Compaq C++
5211              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5212              # Make sure the PIC flag is empty.  It appears that all Alpha              # Make sure the PIC flag is empty.  It appears that all Alpha
# Line 4653  AC_MSG_CHECKING([for $compiler option to Line 5220  AC_MSG_CHECKING([for $compiler option to
5220          ;;          ;;
5221        psos*)        psos*)
5222          ;;          ;;
       sco*)  
         case $cc_basename in  
           CC)  
             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'  
             ;;  
           *)  
             ;;  
         esac  
         ;;  
5223        solaris*)        solaris*)
5224          case $cc_basename in          case $cc_basename in
5225            CC)            CC*)
5226              # Sun C++ 4.2, 5.x and Centerline C++              # Sun C++ 4.2, 5.x and Centerline C++
5227              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5228              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5229              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5230              ;;              ;;
5231            gcx)            gcx*)
5232              # Green Hills C++ Compiler              # Green Hills C++ Compiler
5233              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5234              ;;              ;;
# Line 4680  AC_MSG_CHECKING([for $compiler option to Line 5238  AC_MSG_CHECKING([for $compiler option to
5238          ;;          ;;
5239        sunos4*)        sunos4*)
5240          case $cc_basename in          case $cc_basename in
5241            CC)            CC*)
5242              # Sun C++ 4.x              # Sun C++ 4.x
5243              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5244              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5245              ;;              ;;
5246            lcc)            lcc*)
5247              # Lucid              # Lucid
5248              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5249              ;;              ;;
# Line 4695  AC_MSG_CHECKING([for $compiler option to Line 5253  AC_MSG_CHECKING([for $compiler option to
5253          ;;          ;;
5254        tandem*)        tandem*)
5255          case $cc_basename in          case $cc_basename in
5256            NCC)            NCC*)
5257              # NonStop-UX NCC 3.20              # NonStop-UX NCC 3.20
5258              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5259              ;;              ;;
# Line 4703  AC_MSG_CHECKING([for $compiler option to Line 5261  AC_MSG_CHECKING([for $compiler option to
5261              ;;              ;;
5262          esac          esac
5263          ;;          ;;
5264        unixware*)        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5265            case $cc_basename in
5266              CC*)
5267                _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5268                _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5269                _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5270                ;;
5271            esac
5272          ;;          ;;
5273        vxworks*)        vxworks*)
5274          ;;          ;;
# Line 4734  AC_MSG_CHECKING([for $compiler option to Line 5299  AC_MSG_CHECKING([for $compiler option to
5299        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5300        ;;        ;;
5301    
5302      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5303        # PIC is the default for these OSes.        # PIC is the default for these OSes.
5304        ;;        ;;
5305    
5306      mingw* | pw32* | os2*)      mingw* | cygwin* | pw32* | os2*)
5307        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
5308        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
5309        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'        # Although the cygwin gcc ignores -fPIC, still need this for old-style
5310          # (--disable-auto-import) libraries
5311          m4_if([$1], [GCJ], [],
5312            [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5313        ;;        ;;
5314    
5315      darwin* | rhapsody*)      darwin* | rhapsody*)
# Line 4750  AC_MSG_CHECKING([for $compiler option to Line 5318  AC_MSG_CHECKING([for $compiler option to
5318        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5319        ;;        ;;
5320    
5321        interix[[3-9]]*)
5322          # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5323          # Instead, we relocate shared libraries at runtime.
5324          ;;
5325    
5326      msdosdjgpp*)      msdosdjgpp*)
5327        # Just because we use GCC doesn't mean we suddenly get shared libraries        # Just because we use GCC doesn't mean we suddenly get shared libraries
5328        # on systems that don't support them.        # on systems that don't support them.
# Line 4766  AC_MSG_CHECKING([for $compiler option to Line 5339  AC_MSG_CHECKING([for $compiler option to
5339      hpux*)      hpux*)
5340        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5341        # not for PA HP-UX.        # not for PA HP-UX.
5342        case "$host_cpu" in        case $host_cpu in
5343        hppa*64*|ia64*)        hppa*64*|ia64*)
5344          # +Z the default          # +Z the default
5345          ;;          ;;
# Line 4792  AC_MSG_CHECKING([for $compiler option to Line 5365  AC_MSG_CHECKING([for $compiler option to
5365          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5366        fi        fi
5367        ;;        ;;
5368          darwin*)
5369            # PIC is the default on this platform
5370            # Common symbols not allowed in MH_DYLIB files
5371           case $cc_basename in
5372             xlc*)
5373             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5374             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5375             ;;
5376           esac
5377           ;;
5378    
5379      mingw* | pw32* | os2*)      mingw* | cygwin* | pw32* | os2*)
5380        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
5381        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
5382        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'        m4_if([$1], [GCJ], [],
5383            [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5384        ;;        ;;
5385    
5386      hpux9* | hpux10* | hpux11*)      hpux9* | hpux10* | hpux11*)
5387        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5388        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5389        # not for PA HP-UX.        # not for PA HP-UX.
5390        case "$host_cpu" in        case $host_cpu in
5391        hppa*64*|ia64*)        hppa*64*|ia64*)
5392          # +Z the default          # +Z the default
5393          ;;          ;;
# Line 4826  AC_MSG_CHECKING([for $compiler option to Line 5410  AC_MSG_CHECKING([for $compiler option to
5410        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5411        ;;        ;;
5412    
5413      linux*)      linux* | k*bsd*-gnu)
5414        case $CC in        case $cc_basename in
5415        icc|ecc)        icc* | ecc*)
5416          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5417          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5418          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5419          ;;          ;;
5420        ccc)        pgcc* | pgf77* | pgf90* | pgf95*)
5421            # Portland Group compilers (*not* the Pentium gcc compiler,
5422            # which looks to be a dead project)
5423            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5424            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5425            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5426            ;;
5427          ccc*)
5428          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5429          # All Alpha code is PIC.          # All Alpha code is PIC.
5430          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5431          ;;          ;;
5432          *)
5433            case `$CC -V 2>&1 | sed 5q` in
5434            *Sun\ C*)
5435              # Sun C 5.9
5436              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5437              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5438              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5439              ;;
5440            *Sun\ F*)
5441              # Sun Fortran 8.3 passes all unrecognized flags to the linker
5442              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5443              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5444              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5445              ;;
5446            esac
5447            ;;
5448        esac        esac
5449        ;;        ;;
5450    
# Line 4847  AC_MSG_CHECKING([for $compiler option to Line 5454  AC_MSG_CHECKING([for $compiler option to
5454        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5455        ;;        ;;
5456    
5457      sco3.2v5*)      rdos*)
5458        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'  
5459        ;;        ;;
5460    
5461      solaris*)      solaris*)
       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'  
5462        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5463        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5464          case $cc_basename in
5465          f77* | f90* | f95*)
5466            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5467          *)
5468            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5469          esac
5470        ;;        ;;
5471    
5472      sunos4*)      sunos4*)
# Line 4864  AC_MSG_CHECKING([for $compiler option to Line 5475  AC_MSG_CHECKING([for $compiler option to
5475        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5476        ;;        ;;
5477    
5478      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)      sysv4 | sysv4.2uw2* | sysv4.3*)
5479        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5480        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5481        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
# Line 4877  AC_MSG_CHECKING([for $compiler option to Line 5488  AC_MSG_CHECKING([for $compiler option to
5488        fi        fi
5489        ;;        ;;
5490    
5491        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5492          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5493          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5494          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5495          ;;
5496    
5497        unicos*)
5498          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5499          _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5500          ;;
5501    
5502      uts4*)      uts4*)
5503        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5504        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
# Line 4895  AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_co Line 5517  AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_co
5517  #  #
5518  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5519    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5520      _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),      _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5521      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5522      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5523       "" | " "*) ;;       "" | " "*) ;;
# Line 4904  if test -n "$_LT_AC_TAGVAR(lt_prog_compi Line 5526  if test -n "$_LT_AC_TAGVAR(lt_prog_compi
5526      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5527       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5528  fi  fi
5529  case "$host_os" in  case $host_os in
5530    # For platforms which do not support PIC, -DPIC is meaningless:    # For platforms which do not support PIC, -DPIC is meaningless:
5531    *djgpp*)    *djgpp*)
5532      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
# Line 4913  case "$host_os" in Line 5535  case "$host_os" in
5535      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5536      ;;      ;;
5537  esac  esac
5538    
5539    #
5540    # Check to make sure the static flag actually works.
5541    #
5542    wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5543    AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5544      _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5545      $lt_tmp_static_flag,
5546      [],
5547      [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5548  ])  ])
5549    
5550    
# Line 4920  esac Line 5552  esac
5552  # ------------------------------------  # ------------------------------------
5553  # See if the linker supports building shared libraries.  # See if the linker supports building shared libraries.
5554  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5555  [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])  [AC_REQUIRE([LT_AC_PROG_SED])dnl
5556    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5557  ifelse([$1],[CXX],[  ifelse([$1],[CXX],[
5558    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5559    case $host_os in    case $host_os in
5560    aix4* | aix5*)    aix[[4-9]]*)
5561      # If we're using GNU nm, then we don't want the "-C" option.      # If we're using GNU nm, then we don't want the "-C" option.
5562      # -C means demangle to AIX nm, but means don't demangle with GNU nm      # -C means demangle to AIX nm, but means don't demangle with GNU nm
5563      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
# Line 4937  ifelse([$1],[CXX],[ Line 5570  ifelse([$1],[CXX],[
5570      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5571    ;;    ;;
5572    cygwin* | mingw*)    cygwin* | mingw*)
5573      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5574    ;;    ;;
5575    *)    *)
5576      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5577    ;;    ;;
5578    esac    esac
5579      _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5580  ],[  ],[
5581    runpath_var=    runpath_var=
5582    _LT_AC_TAGVAR(allow_undefined_flag, $1)=    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
# Line 4963  ifelse([$1],[CXX],[ Line 5597  ifelse([$1],[CXX],[
5597    _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown    _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5598    _LT_AC_TAGVAR(hardcode_automatic, $1)=no    _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5599    _LT_AC_TAGVAR(module_cmds, $1)=    _LT_AC_TAGVAR(module_cmds, $1)=
5600    _LT_AC_TAGVAR(module_expsym_cmds, $1)=      _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5601    _LT_AC_TAGVAR(always_export_symbols, $1)=no    _LT_AC_TAGVAR(always_export_symbols, $1)=no
5602    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5603    # include_expsyms should be a list of space-separated symbols to be *always*    # include_expsyms should be a list of space-separated symbols to be *always*
# Line 4973  ifelse([$1],[CXX],[ Line 5607  ifelse([$1],[CXX],[
5607    # it will be wrapped by ` (' and `)$', so one must not match beginning or    # it will be wrapped by ` (' and `)$', so one must not match beginning or
5608    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5609    # as well as any symbol that contains `d'.    # as well as any symbol that contains `d'.
5610    _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"    _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5611    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5612    # platforms (ab)use it in PIC code, but their linkers get confused if    # platforms (ab)use it in PIC code, but their linkers get confused if
5613    # the symbol is explicitly referenced.  Since portable code cannot    # the symbol is explicitly referenced.  Since portable code cannot
5614    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
5615    # preloaded symbol tables.    # preloaded symbol tables.
5616      # Exclude shared library initialization/finalization symbols.
5617    dnl Note also adjust exclude_expsyms for C++ above.
5618    extract_expsyms_cmds=    extract_expsyms_cmds=
5619      # Just being paranoid about ensuring that cc_basename is set.
5620      _LT_CC_BASENAME([$compiler])
5621    case $host_os in    case $host_os in
5622    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
5623      # FIXME: the MSVC++ port hasn't been tested in a loooong time      # FIXME: the MSVC++ port hasn't been tested in a loooong time
# Line 4990  ifelse([$1],[CXX],[ Line 5627  ifelse([$1],[CXX],[
5627        with_gnu_ld=no        with_gnu_ld=no
5628      fi      fi
5629      ;;      ;;
5630      interix*)
5631        # we just hope/assume this is gcc and not c89 (= MSVC++)
5632        with_gnu_ld=yes
5633        ;;
5634    openbsd*)    openbsd*)
5635      with_gnu_ld=no      with_gnu_ld=no
5636      ;;      ;;
# Line 5000  ifelse([$1],[CXX],[ Line 5641  ifelse([$1],[CXX],[
5641      # If archive_cmds runs LD, not CC, wlarc should be empty      # If archive_cmds runs LD, not CC, wlarc should be empty
5642      wlarc='${wl}'      wlarc='${wl}'
5643    
5644        # Set some defaults for GNU ld with shared library support. These
5645        # are reset later if shared libraries are not supported. Putting them
5646        # here allows them to be overridden if necessary.
5647        runpath_var=LD_RUN_PATH
5648        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5649        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5650        # ancient GNU ld didn't support --whole-archive et. al.
5651        if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5652            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5653          else
5654            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5655        fi
5656        supports_anon_versioning=no
5657        case `$LD -v 2>/dev/null` in
5658          *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5659          *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5660          *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5661          *\ 2.11.*) ;; # other 2.11 versions
5662          *) supports_anon_versioning=yes ;;
5663        esac
5664    
5665      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
5666      case $host_os in      case $host_os in
5667      aix3* | aix4* | aix5*)      aix[[3-9]]*)
5668        # On AIX/PPC, the GNU linker is very broken        # On AIX/PPC, the GNU linker is very broken
5669        if test "$host_cpu" != ia64; then        if test "$host_cpu" != ia64; then
5670          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
# Line 5050  EOF Line 5712  EOF
5712        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5713        _LT_AC_TAGVAR(always_export_symbols, $1)=no        _LT_AC_TAGVAR(always_export_symbols, $1)=no
5714        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5715        _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'        _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5716    
5717        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5718          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5719          # If the export-symbols file already is a .def file (1st line          # If the export-symbols file already is a .def file (1st line
5720          # is EXPORTS), use it as is; otherwise, prepend...          # is EXPORTS), use it as is; otherwise, prepend...
5721          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
# Line 5062  EOF Line 5724  EOF
5724            echo EXPORTS > $output_objdir/$soname.def;            echo EXPORTS > $output_objdir/$soname.def;
5725            cat $export_symbols >> $output_objdir/$soname.def;            cat $export_symbols >> $output_objdir/$soname.def;
5726          fi~          fi~
5727          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5728          else
5729            _LT_AC_TAGVAR(ld_shlibs, $1)=no
5730          fi
5731          ;;
5732    
5733        interix[[3-9]]*)
5734          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5735          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5736          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5737          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5738          # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5739          # Instead, shared libraries are loaded at an image base (0x10000000 by
5740          # default) and relocated if they conflict, which is a slow very memory
5741          # consuming and fragmenting process.  To avoid this, we pick a random,
5742          # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5743          # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5744          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5745          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5746          ;;
5747    
5748        gnu* | linux* | k*bsd*-gnu)
5749          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5750            tmp_addflag=
5751            case $cc_basename,$host_cpu in
5752            pgcc*)                          # Portland Group C compiler
5753              _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5754              tmp_addflag=' $pic_flag'
5755              ;;
5756            pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5757              _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5758              tmp_addflag=' $pic_flag -Mnomain' ;;
5759            ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
5760              tmp_addflag=' -i_dynamic' ;;
5761            efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5762              tmp_addflag=' -i_dynamic -nofor_main' ;;
5763            ifc* | ifort*)                  # Intel Fortran compiler
5764              tmp_addflag=' -nofor_main' ;;
5765            esac
5766            case `$CC -V 2>&1 | sed 5q` in
5767            *Sun\ C*)                       # Sun C 5.9
5768              _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5769              tmp_sharedflag='-G' ;;
5770            *Sun\ F*)                       # Sun Fortran 8.3
5771              tmp_sharedflag='-G' ;;
5772            *)
5773              tmp_sharedflag='-shared' ;;
5774            esac
5775            _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5776    
5777            if test $supports_anon_versioning = yes; then
5778              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5779      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5780      $echo "local: *; };" >> $output_objdir/$libname.ver~
5781              $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5782            fi
5783        else        else
5784          ld_shlibs=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5785        fi        fi
5786        ;;        ;;
5787    
# Line 5078  EOF Line 5795  EOF
5795        fi        fi
5796        ;;        ;;
5797    
5798      solaris* | sysv5*)      solaris*)
5799        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5800          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5801          cat <<EOF 1>&2          cat <<EOF 1>&2
# Line 5099  EOF Line 5816  EOF
5816        fi        fi
5817        ;;        ;;
5818    
5819        sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5820          case `$LD -v 2>&1` in
5821            *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5822            _LT_AC_TAGVAR(ld_shlibs, $1)=no
5823            cat <<_LT_EOF 1>&2
5824    
5825    *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5826    *** reliably create shared libraries on SCO systems.  Therefore, libtool
5827    *** is disabling shared libraries support.  We urge you to upgrade GNU
5828    *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5829    *** your PATH or compiler configuration so that the native linker is
5830    *** used, and then restart.
5831    
5832    _LT_EOF
5833            ;;
5834            *)
5835              if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5836                _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5837                _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5838                _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5839              else
5840                _LT_AC_TAGVAR(ld_shlibs, $1)=no
5841              fi
5842            ;;
5843          esac
5844          ;;
5845    
5846      sunos4*)      sunos4*)
5847        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5848        wlarc=        wlarc=
# Line 5116  EOF Line 5860  EOF
5860        ;;        ;;
5861      esac      esac
5862    
5863      if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then      if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5864        runpath_var=LD_RUN_PATH        runpath_var=