Ignore:
Timestamp:
Aug 16, 2003, 11:33:53 PM (22 years ago)
Author:
bird
Message:

Joined the port of 2.11.2 with 2.14.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/ltconfig

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r617 r618  
    22
    33# ltconfig - Create a system-specific libtool.
    4 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
     4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
     5# Free Software Foundation, Inc.
    56# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    67#
     
    181182PROGRAM=ltconfig
    182183PACKAGE=libtool
    183 VERSION=1.4a
    184 TIMESTAMP=" (1.641.2.122 2000/09/30 05:27:52)"
     184VERSION=1.4a-GCC3.0
     185TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)"
    185186ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    186187ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     
    217218libext=a
    218219cache_file=
     220max_cmd_len=
    219221
    220222## Dependencies to place before and after the object being linked:
     
    295297for option
    296298do
    297   case "$option" in
     299  case $option in
    298300  -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    299301  *) optarg= ;;
     
    307309  fi
    308310
    309   case "$option" in
     311  case $option in
    310312  --help) cat <<EOM
    311313Usage: $progname [OPTION]... LTMAIN [HOST]
     
    423425if test -n "$tagname"; then
    424426  # Check whether tagname contains only valid characters
    425   case "$tagname" in
    426   *[!-_A-Za-z0-9,/]*)
     427  case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
     428  "") ;;
     429  *)
    427430    echo "$progname: invalid tag name: $tagname" 1>&2
    428431    exit 1
     
    453456for arg
    454457do
    455   case "$arg" in
     458  case $arg in
    456459  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    457460  ltconfig_args="$ltconfig_args '$arg'" ;;
     
    536539
    537540  host_alias=$host
    538   case "$host_alias" in
     541  case $host_alias in
    539542  "")
    540543    # Force config.guess to use the C compiler.
     
    564567
    565568  build_alias=$build
    566   case "$build_alias" in
     569  case $build_alias in
    567570  NONE)
    568571    case $nonopt in
     
    599602
    600603# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
    601 case "$host_os" in
     604case $host_os in
    602605linux-gnu*) ;;
    603606linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
    604607esac
    605608
    606 case "$host_os" in
     609case $host_os in
    607610aix3*)
    608611  # AIX sometimes has problems with the GCC collect2 program.  For some
     
    673676# the associated values are set (in the cache) correctly too.
    674677echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
    675 echo "$progname:675:checking for $compiler option to produce PIC" 1>&5
     678echo "$progname:678:checking for $compiler option to produce PIC" 1>&5
    676679
    677680if test -z "$ac_cv_prog_cc_pic"; then
     
    682685  # Check to make sure the pic_flag actually works.
    683686  echo $ac_n "checking if $compiler PIC flag $ac_cv_prog_cc_pic works... $ac_c" 1>&6
    684   echo "$progname:684:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5
     687  echo "$progname:687:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5
    685688  if test "X${ac_cv_prog_cc_pic_works+set}" = Xset && \
    686689     test "X${ac_cv_prog_cc_pic_works}" != X; then
     
    692695    save_CFLAGS="$CFLAGS"
    693696    CFLAGS="$CFLAGS $ac_cv_prog_cc_pic -DPIC"
    694     if { (eval echo $progname:694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
     697    if { (eval echo $progname:697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
    695698      # Append any warnings to the config.log.
    696699      cat conftest.err 1>&5
    697700
    698       case "$host_os" in
     701      case $host_os in
    699702      hpux9* | hpux10* | hpux11*)
    700703        # On HP-UX, both CC and GCC only warn that PIC is supported... then
     
    744747
    745748echo $ac_n "checking if $compiler static flag $ac_cv_prog_cc_static works... $ac_c" 1>&6
    746 echo "$progname:746: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5
     749echo "$progname:749: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5
    747750if test "X${ac_cv_prog_cc_static_works+set}" = Xset && \
    748751   test "X${ac_cv_prog_cc_static_works}" != X; then
     
    753756  save_LDFLAGS="$LDFLAGS"
    754757  LDFLAGS="$LDFLAGS $ac_cv_prog_cc_static"
    755   if { (eval echo $progname:755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     758  if { (eval echo $progname:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    756759    ac_cv_prog_cc_static_works=yes
    757760  else
     
    774777can_build_shared="$ac_cv_prog_cc_can_build_shared"
    775778
     779# find the maximum length of command line arguments
     780echo "$progname:780: finding the maximum length of command line arguments" 1>&5
     781echo $ac_n "finding the maximum length of command line arguments... $ac_c" 1>&6
     782if test "${lt_cv_sys_max_cmd_len+set}" = set; then
     783  echo $ac_n "(cached) $ac_c" 1>&6
     784else
     785  i=0
     786  testring="ABCD"
     787  # If test is not a shell built-in, we'll probably end up computing a
     788  # maximum length that is only half of the actual maximum length, but
     789  # we can't tell.
     790  while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
     791             = "XX$testring" &&
     792          new_result=`expr "X$testring" : ".*" 2>&1` &&
     793          lt_cv_sys_max_cmd_len=$new_result &&
     794          test $i != 17 # 1/2 MB should be enough
     795  do
     796    i=`expr $i + 1`
     797    testring=$testring$testring
     798  done
     799  testring=
     800  # add a significant safety factor because C++ compilers can tack on massive amounts
     801  # of additional arguments before passing them to the linker.  1/4 should be good.
     802  len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     803  lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
     804fi
     805echo "$progname:@lineno@: result: $lt_cv_sys_max_cmd_len" 1>&5
     806echo "${ac_t}$lt_cv_sys_max_cmd_len" 1>&6
     807
     808if test -n $lt_cv_sys_max_cmd_len ; then
     809  max_cmd_len=$lt_cv_sys_max_cmd_len
     810else
     811  max_cmd_len=none
     812fi
     813
    776814# Check to see if options -o and -c are simultaneously supported by compiler
    777815echo $ac_n "checking if $compiler supports -c -o file.$objext... $ac_c" 1>&6
    778 $rm -r conftest 2>/dev/null
    779 mkdir conftest
    780 cd conftest
    781 $rm conftest*
    782 echo $lt_simple_compile_test_code > conftest.$ac_ext
    783 mkdir out
    784 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
    785 # that will create temporary files in the current directory regardless of
    786 # the output directory.  Thus, making CWD read-only will cause this test
    787 # to fail, enabling locking or at least warning the user not to do parallel
    788 # builds.
    789 chmod -w .
    790 save_CFLAGS="$CFLAGS"
    791 CFLAGS="$CFLAGS -o out/conftest2.$objext"
    792 echo "$progname:792: checking if $compiler supports -c -o file.$objext" >&5
    793 if { (eval echo $progname:793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then
    794 
    795   # The compiler can only warn and ignore the option if not recognized
    796   # So say no if there are warnings
    797     if test -s out/conftest.err; then
    798       echo "$ac_t"no 1>&6
    799       compiler_c_o=no
    800     else
    801       echo "$ac_t"yes 1>&6
    802       compiler_c_o=yes
    803     fi
    804 else
    805   # Append any errors to the config.log.
    806   cat out/conftest.err 1>&5
    807   compiler_c_o=no
    808   echo "$ac_t"no 1>&6
    809 fi
    810 CFLAGS="$save_CFLAGS"
    811 chmod u+w .
    812 $rm conftest* out/*
    813 rmdir out
    814 cd ..
    815 rmdir conftest
    816 $rm -r conftest 2>/dev/null
     816if test "${lt_cv_compiler_c_o+set}" = set; then
     817  echo $ac_n "(cached) $ac_c" 1>&6
     818else
     819  $rm -r conftest 2>/dev/null
     820  mkdir conftest
     821  cd conftest
     822  $rm conftest*
     823  echo $lt_simple_compile_test_code > conftest.$ac_ext
     824  mkdir out
     825  # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
     826  # that will create temporary files in the current directory regardless of
     827  # the output directory.  Thus, making CWD read-only will cause this test
     828  # to fail, enabling locking or at least warning the user not to do parallel
     829  # builds.
     830  chmod -w .
     831  save_CFLAGS="$CFLAGS"
     832  CFLAGS="$CFLAGS -o out/conftest2.$objext"
     833  echo "$progname:833: checking if $compiler supports -c -o file.$objext" >&5
     834  if { (eval echo $progname:834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then
     835
     836    # The compiler can only warn and ignore the option if not recognized
     837    # So say no if there are warnings
     838      if test -s out/conftest.err; then
     839        lt_cv_compiler_c_o=no
     840      else
     841        lt_cv_compiler_c_o=yes
     842      fi
     843  else
     844    # Append any errors to the config.log.
     845    cat out/conftest.err 1>&5
     846    lt_cv_compiler_c_o=no
     847  fi
     848  CFLAGS="$save_CFLAGS"
     849  chmod u+w .
     850  $rm conftest* out/*
     851  rmdir out
     852  cd ..
     853  rmdir conftest
     854  $rm -r conftest 2>/dev/null
     855fi
     856compiler_c_o=$lt_cv_compiler_c_o
     857echo "${ac_t}$compiler_c_o" 1>&6
    817858
    818859# Check to see if we can do hard links to lock some files if needed
     
    844885  save_CFLAGS="$CFLAGS"
    845886  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
    846   echo "$progname:846: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
    847   if { (eval echo $progname:847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
     887  echo "$progname:887: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
     888  if { (eval echo $progname:888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
    848889
    849890    # The compiler can only warn and ignore the option if not recognized
     
    914955fi
    915956
     957case $reload_flag in
     958"" | " "*) ;;
     959*) reload_flag=" $reload_flag" ;;
     960esac
    916961reload_cmds='$LD$reload_flag -o $output$reload_objs'
    917962test -z "$deplibs_check_method" && deplibs_check_method=unknown
     
    933978
    934979echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
    935 case "$host_os" in
     980case $host_os in
    936981aix3*)
    937982  version_type=linux
     
    939984  shlibpath_var=LIBPATH
    940985
    941   # AIX has no versioning support, so we append a major version to the name.
     986  # AIX 3 has no versioning support, so we append a major version to the name.
    942987  soname_spec='${libname}${release}.so$major'
    943988  ;;
    944989
    945 aix4*)
     990aix4* | aix5*)
    946991  version_type=linux
    947   # AIX has no versioning support, so currently we can not hardcode correct
    948   # soname into executable. Probably we can add versioning support to
    949   # collect2, so additional links can be useful in future.
    950   # We preserve .a as extension for shared libraries though AIX4.2
    951   # and later linker supports .so
    952   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
    953   shlibpath_var=LIBPATH
     992  if test "$host_cpu" = ia64; then
     993    # AIX 5 supports IA64
     994    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     995    shlibpath_var=LD_LIBRARY_PATH
     996  else
     997    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
     998    # soname into executable. Probably we can add versioning support to
     999    # collect2, so additional links can be useful in future.
     1000    # We preserve .a as extension for shared libraries though AIX4.2
     1001    # and later linker supports .so
     1002    if test "$aix_use_runtimelinking" = yes; then
     1003      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
     1004      # lib<name>.a to let people know that these are not typical AIX shared libraries.
     1005      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     1006    else
     1007      # We preserve .a as extension for shared libraries though AIX4.2
     1008      # and later when we are not doing run time linking.
     1009      library_names_spec='${libname}${release}.a $libname.a'
     1010      soname_spec='${libname}${release}.so$major'
     1011    fi
     1012    # If we're using GNU nm, then we don't want the "-C" option.
     1013    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     1014    if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
     1015      export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     1016    else
     1017      export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     1018    fi
     1019    shlibpath_var=LIBPATH
     1020    deplibs_check_method=pass_all
     1021    case $host_os in
     1022    aix4 | aix4.[01] | aix4.[01].*)
     1023      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
     1024           echo ' yes '
     1025           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     1026        :
     1027      else
     1028        # With GCC up to 2.95.x, collect2 would create an import file
     1029        # for dependence libraries.  The import file would start with
     1030        # the line `#! .'.  This would cause the generated library to
     1031        # depend on `.', always an invalid library.  This was fixed in
     1032        # development snapshots of GCC prior to 3.0.
     1033        can_build_shared=no
     1034      fi
     1035      ;;
     1036    esac
     1037  fi
    9541038  ;;
    9551039
     
    9881072  need_version=no
    9891073  need_lib_prefix=no
    990   if test "$with_gcc" = yes; then
     1074  case $with_gcc,$host_os in
     1075  yes,cygwin*)
     1076    library_names_spec='$libname.dll.a'
     1077    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
     1078    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i; echo \$dlname'\''`~
     1079      dldir=$destdir/`dirname \$dlpath`~
     1080      test -d \$dldir || mkdir -p \$dldir~
     1081      $install_prog .libs/$dlname \$dldir/$dlname'
     1082    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
     1083      dlpath=$dir/\$dldll; $rm \$dlpath'
     1084    ;;
     1085  yes,mingw*)
    9911086    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    992   else
     1087    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
     1088    ;;
     1089  yes,pw32*)
     1090    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
     1091;;
     1092  *)
    9931093    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
    994   fi
     1094    ;;
     1095  esac
    9951096  dynamic_linker='Win32 ld.exe'
    9961097  # FIXME: first we should search . and the directory the executable is in
     
    10001101  ;;
    10011102
     1103darwin* | rhapsody*)
     1104  dynamic_linker="$host_os dyld"
     1105  version_type=darwin
     1106  need_lib_prefix=no
     1107  need_version=no
     1108  library_names_spec='${libname}${release}${versuffix}.`test .$module = .yes && echo so || echo dylib` ${libname}${release}${major}.$`test .$module = .yes && echo so || echo dylib` ${libname}.`test .$module = .yes && echo so || echo dylib`'
     1109  soname_spec='${libname}${release}${major}.`test .$module = .yes && echo so || echo dylib`'
     1110  shlibpath_overrides_runpath=yes
     1111  shlibpath_var=DYLD_LIBRARY_PATH
     1112  ;;
     1113
    10021114freebsd1*)
    10031115  dynamic_linker=no
     
    10071119  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
    10081120  version_type=freebsd-$objformat
    1009   case "$version_type" in
     1121  case $version_type in
    10101122    freebsd-elf*)
    10111123      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
    10121124      need_version=no
     1125      need_lc=no
    10131126      need_lib_prefix=no
    10141127      ;;
     
    10191132  esac
    10201133  shlibpath_var=LD_LIBRARY_PATH
    1021   case "$host_os" in
     1134  case $host_os in
    10221135  freebsd2*)
    10231136    shlibpath_overrides_runpath=yes
     
    10431156  # Give a soname corresponding to the major version so that dld.sl refuses to
    10441157  # link against other versions.
    1045   dynamic_linker="$host_os dld.sl"
    10461158  version_type=sunos
    10471159  need_lib_prefix=no
    10481160  need_version=no
    1049   shlibpath_var=SHLIB_PATH
    1050   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    1051   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
    1052   soname_spec='${libname}${release}.sl$major'
     1161  case "$host_cpu" in
     1162  ia64*)
     1163    dynamic_linker="$host_os dld.so"
     1164    shlibpath_var=LD_LIBRARY_PATH
     1165    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     1166    soname_spec='${libname}${release}.so$major'
     1167    shlibpath_var=LD_LIBRARY_PATH
     1168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     1169    if test "X$HPUX_IA64_MODE" = X32; then
     1170      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32/usr/local/lib"
     1171    else
     1172      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
     1173    fi
     1174    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     1175    ;;
     1176  *)
     1177    dynamic_linker="$host_os dld.sl"
     1178    shlibpath_var=SHLIB_PATH
     1179    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
     1180    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
     1181    soname_spec='${libname}${release}.sl$major'
     1182    ;;
     1183  esac
    10531184  # HP-UX runs *really* slowly unless shared libraries are mode 555.
    10541185  postinstall_cmds='chmod 555 $lib'
     
    10561187
    10571188irix5* | irix6*)
     1189  if test "$with_gnu_ld" = yes; then
     1190    version_type=linux
     1191  else
     1192    version_type=irix
     1193  fi
    10581194  version_type=irix
    10591195  need_lib_prefix=no
     
    10611197  soname_spec='${libname}${release}.so$major'
    10621198  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
    1063   case "$host_os" in
     1199  case $host_os in
    10641200  irix5*)
    10651201    libsuff= shlibsuff=
    10661202    ;;
    10671203  *)
    1068     case "$LD" in # libtool.m4 will add one of these switches to LD
    1069     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
    1070     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
    1071     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
     1204    case $LD in # libtool.m4 will add one of these switches to LD
     1205    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
     1206      libsuff= shlibsuff= libmagic=32-bit;;
     1207    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
     1208      libsuff=32 shlibsuff=N32 libmagic=N32;;
     1209    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
     1210      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    10721211    *) libsuff= shlibsuff= libmagic=never-match;;
    10731212    esac
     
    11101249
    11111250netbsd*)
     1251  need_lib_prefix=no
     1252  need_version=no
    11121253  version_type=sunos
    11131254  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     
    11251266  ;;
    11261267
     1268newsos6)
     1269  version_type=linux
     1270  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     1271  shlibpath_var=LD_LIBRARY_PATH
     1272  shlibpath_overrides_runpath=yes
     1273  ;;
     1274
    11271275openbsd*)
    11281276  version_type=sunos
     
    11401288  need_version=no
    11411289  need_lib_prefix=no
    1142   # embedd hex versionnumbers into the name as far as there is space for such.
     1290  # embedd versionnumbers into the name as far as there is space for such.
    11431291  # old: libname_spec='$name'
    11441292  # old: library_names_spec='$libname.dll $libname.a'
     
    12111359  soname_spec='${libname}${release}.so$major'
    12121360  shlibpath_var=LD_LIBRARY_PATH
    1213   case "$host_vendor" in
     1361  case $host_vendor in
    12141362    motorola)
    12151363      need_lib_prefix=no
     
    12721420
    12731421# Define system-specific variables.
    1274 case "$host_os" in
     1422case $host_os in
    12751423aix*)
    12761424  symcode='[BCDT]'
     
    12801428  ;;
    12811429hpux*) # Its linker distinguishes data from code symbols
    1282   global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
     1430  global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    12831431  ;;
    12841432irix*)
     
    12931441esac
    12941442
    1295 # Handle CRLF in mingw too chain
     1443# Handle CRLF in mingw tool chain
    12961444opt_cr=
    1297 case "$host_os" in
     1445case $host_os in
    12981446mingw*)
    12991447  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     
    13101458
    13111459  # Write the raw and C identifiers.
    1312 global_symbol_pipe="sed -n -e 's/^.*[   ]\($symcode\)[  ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     1460  global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
    13131461
    13141462  # Check to see that the pipe works correctly.
     
    13241472}
    13251473#endif
    1326 main(){nm_test_var='a';nm_test_func();return(0);}
     1474int main(){nm_test_var='a';nm_test_func();return(0);}
    13271475EOF
    13281476
    1329   echo "$progname:1309: checking if global_symbol_pipe works" >&5
    1330   if { (eval echo $progname:1310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
     1477  echo "$progname:1431: checking if global_symbol_pipe works" >&5
     1478  if { (eval echo $progname:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
    13311479    # Now try to grab the symbols.
    13321480    nlist=conftest.nm
    1333     if { echo "$progname:1313: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
     1481    if { echo "$progname:1435: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
    13341482
    13351483      # Try sorting and uniquifying the output.
     
    13681516{
    13691517EOF
    1370           sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
     1518          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
    13711519          cat <<\EOF >> conftest.$ac_ext
    13721520  {0, (lt_ptr_t) 0}
     
    13831531          LIBS="conftstm.$objext"
    13841532          CFLAGS="$CFLAGS$no_builtin_flag"
    1385           if { (eval echo $progname:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1533          if { (eval echo $progname:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    13861534            pipe_works=yes
    13871535          else
     
    14271575# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
    14281576# configure.in, otherwise build static only libraries.
    1429 case "$host_os" in
     1577case $host_os in
    14301578cygwin* | mingw* | pw32*)
    14311579  if test x$can_build_shared = xyes; then
     
    14411589# On AIX, shared libraries and static libraries use the same namespace, and
    14421590# are all built from PIC.
    1443 case "$host_os" in
     1591case $host_os in
    14441592aix3*)
    14451593  test "$enable_shared" = yes && enable_static=no
     
    14871635  lt_cv_dlopen=no lt_cv_dlopen_libs=
    14881636echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    1489 echo "$progname:1469: checking for dlopen in -ldl" >&5
     1637echo "$progname:1591: checking for dlopen in -ldl" >&5
    14901638if test "X${ac_cv_lib_dl_dlopen+set}" = Xset; then
    14911639  echo $ac_n "(cached) $ac_c" 1>&6
     
    14941642LIBS="-ldl  $LIBS"
    14951643cat > conftest.$ac_ext <<EOF
    1496 #line 1476 "ltconfig"
     1644#line 1598 "ltconfig"
    14971645/* Override any gcc2 internal prototype to avoid an error.  */
    14981646/* We use char because int might match the return type of a gcc2
     
    15071655; return 0; }
    15081656EOF
    1509 if { (eval echo $progname:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1657if { (eval echo $progname:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15101658  rm -rf conftest*
    15111659  ac_cv_lib_dl_dlopen=yes
     
    15261674  echo "$ac_t""no" 1>&6
    15271675echo $ac_n "checking for dlopen""... $ac_c" 1>&6
    1528 echo "$progname:1508: checking for dlopen" >&5
     1676echo "$progname:1630: checking for dlopen" >&5
    15291677if test "X${ac_cv_func_dlopen+set}" = Xset; then
    15301678  echo $ac_n "(cached) $ac_c" 1>&6
    15311679else
    15321680  cat > conftest.$ac_ext <<EOF
    1533 #line 1513 "ltconfig"
     1681#line 1635 "ltconfig"
    15341682/* System header to define __stub macros and hopefully few prototypes,
    15351683    which can conflict with char dlopen(); below.  */
     
    15561704; return 0; }
    15571705EOF
    1558 if { (eval echo $progname:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1706if { (eval echo $progname:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15591707  rm -rf conftest*
    15601708  ac_cv_func_dlopen=yes
     
    15731721  echo "$ac_t""no" 1>&6
    15741722echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
    1575 echo "$progname:1555: checking for dlopen in -lsvld" >&5
     1723echo "$progname:1677: checking for dlopen in -lsvld" >&5
    15761724if test "X${ac_cv_lib_svld_dlopen+set}" = Xset; then
    15771725  echo $ac_n "(cached) $ac_c" 1>&6
     
    15801728LIBS="-lsvld  $LIBS"
    15811729cat > conftest.$ac_ext <<EOF
    1582 #line 1562 "ltconfig"
     1730#line 1684 "ltconfig"
    15831731/* Override any gcc2 internal prototype to avoid an error.  */
    15841732/* We use char because int might match the return type of a gcc2
     
    15931741; return 0; }
    15941742EOF
    1595 if { (eval echo $progname:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1743if { (eval echo $progname:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15961744  rm -rf conftest*
    15971745  ac_cv_lib_svld_dlopen=yes
     
    16121760  echo "$ac_t""no" 1>&6
    16131761echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
    1614 echo "$progname:1594: checking for dld_link in -ldld" >&5
     1762echo "$progname:1716: checking for dld_link in -ldld" >&5
    16151763if test "X${ac_cv_lib_dld_dld_link+set}" = Xset; then
    16161764  echo $ac_n "(cached) $ac_c" 1>&6
     
    16191767LIBS="-ldld  $LIBS"
    16201768cat > conftest.$ac_ext <<EOF
    1621 #line 1601 "ltconfig"
     1769#line 1723 "ltconfig"
    16221770/* Override any gcc2 internal prototype to avoid an error.  */
    16231771/* We use char because int might match the return type of a gcc2
     
    16321780; return 0; }
    16331781EOF
    1634 if { (eval echo $progname:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1782if { (eval echo $progname:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16351783  rm -rf conftest*
    16361784  ac_cv_lib_dld_dld_link=yes
     
    16511799  echo "$ac_t""no" 1>&6
    16521800echo $ac_n "checking for shl_load""... $ac_c" 1>&6
    1653 echo "$progname:1633: checking for shl_load" >&5
     1801echo "$progname:1755: checking for shl_load" >&5
    16541802if test "X${ac_cv_func_shl_load+set}" = Xset; then
    16551803  echo $ac_n "(cached) $ac_c" 1>&6
    16561804else
    16571805  cat > conftest.$ac_ext <<EOF
    1658 #line 1638 "ltconfig"
     1806#line 1760 "ltconfig"
    16591807/* System header to define __stub macros and hopefully few prototypes,
    16601808    which can conflict with char shl_load(); below.  */
     
    16811829; return 0; }
    16821830EOF
    1683 if { (eval echo $progname:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1831if { (eval echo $progname:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16841832  rm -rf conftest*
    16851833  ac_cv_func_shl_load=yes
     
    16991847  echo "$ac_t""no" 1>&6
    17001848echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    1701 echo "$progname:1681: checking for shl_load in -ldld" >&5
     1849echo "$progname:1803: checking for shl_load in -ldld" >&5
    17021850if test "X${ac_cv_lib_dld_shl_load+set}" = Xset; then
    17031851  echo $ac_n "(cached) $ac_c" 1>&6
     
    17061854LIBS="-ldld  $LIBS"
    17071855cat > conftest.$ac_ext <<EOF
    1708 #line 1688 "ltconfig"
     1856#line 1810 "ltconfig"
    17091857#include "confdefs.h"
    17101858/* Override any gcc2 internal prototype to avoid an error.  */
     
    17201868; return 0; }
    17211869EOF
    1722 if { (eval echo $progname:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1870if { (eval echo $progname:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17231871  rm -rf conftest*
    17241872  ac_cv_lib_dld_shl_load=yes
     
    17621910  fi
    17631911
    1764   case "$lt_cv_dlopen" in
     1912  case $lt_cv_dlopen in
    17651913  dlopen)
    17661914for ac_hdr in dlfcn.h; do
    17671915ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17681916echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1769 echo "$progname:1749: checking for $ac_hdr" >&5
     1917echo "$progname:1871: checking for $ac_hdr" >&5
    17701918if eval "test \"`echo 'X$''{'ac_cv_header_$ac_safe'+set}'`\" = Xset"; then
    17711919  echo $ac_n "(cached) $ac_c" 1>&6
    17721920else
    17731921  cat > conftest.$ac_ext <<EOF
    1774 #line 1754 "ltconfig"
     1922#line 1876 "ltconfig"
    17751923#include <$ac_hdr>
    17761924int fnord = 0;
     
    17781926EOF
    17791927ac_try="$ac_compile >/dev/null 2>conftest.out"
    1780 { (eval echo $progname:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1928{ (eval echo $progname:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17811929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    17821930if test -z "$ac_err"; then
     
    18061954
    18071955  echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
    1808 echo "$progname:1788: checking whether a program can dlopen itself" >&5
     1956echo "$progname:1910: checking whether a program can dlopen itself" >&5
    18091957if test "X${lt_cv_dlopen_self+set}" = Xset; then
    18101958  echo $ac_n "(cached) $ac_c" 1>&6
     
    18141962  else
    18151963    cat > conftest.$ac_ext <<EOF
    1816 #line 1796 "ltconfig"
     1964#line 1918 "ltconfig"
    18171965
    18181966#if HAVE_DLFCN_H
     
    18542002#endif
    18552003
    1856 fnord() { int i=42;}
    1857 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
     2004void fnord() { int i=42; }
     2005int main() {
     2006    void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
    18582007    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
    18592008               if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
    18602009
    18612010EOF
    1862 if { (eval echo $progname:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2011if { (eval echo $progname:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    18632012then
    18642013  lt_cv_dlopen_self=yes
     
    18792028    LDFLAGS="$LDFLAGS $link_static_flag"
    18802029  echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
    1881 echo "$progname:1861: checking whether a statically linked program can dlopen itself" >&5
     2030echo "$progname:1984: checking whether a statically linked program can dlopen itself" >&5
    18822031if test "X${lt_cv_dlopen_self_static+set}" = Xset; then
    18832032  echo $ac_n "(cached) $ac_c" 1>&6
     
    18872036  else
    18882037    cat > conftest.$ac_ext <<EOF
    1889 #line 1869 "ltconfig"
     2038#line 1992 "ltconfig"
    18902039
    18912040#if HAVE_DLFCN_H
     
    19272076#endif
    19282077
    1929 fnord() { int i=42;}
    1930 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
     2078void fnord() { int i=42; }
     2079int main() {
     2080    void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
    19312081    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
    19322082    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
    19332083
    19342084EOF
    1935 if { (eval echo $progname:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2085if { (eval echo $progname:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    19362086then
    19372087  lt_cv_dlopen_self_static=yes
     
    19522102  esac
    19532103
    1954   case "$lt_cv_dlopen_self" in
     2104  case $lt_cv_dlopen_self in
    19552105  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
    19562106  *) enable_dlopen_self=unknown ;;
    19572107  esac
    19582108
    1959   case "$lt_cv_dlopen_self_static" in
     2109  case $lt_cv_dlopen_self_static in
    19602110  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
    19612111  *) enable_dlopen_self_static=unknown ;;
     
    19742124
    19752125# Only quote variables if we're using ltmain.sh.
    1976 case "$ltmain" in
     2126case $ltmain in
    19772127*.sh)
    19782128  # Now quote all the things that may contain metacharacters.
     
    19992149    compiler_c_o need_locks exclude_expsyms include_expsyms; do
    20002150
    2001     case "$var" in
     2151    case $var in
    20022152    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
    20032153    old_postinstall_cmds | old_postuninstall_cmds | \
     
    20152165  done
    20162166
    2017   case "$ltecho" in
     2167  case $ltecho in
    20182168  *'\$0 --fallback-echo"')
    20192169    ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
     
    22042354pic_mode=$pic_mode
    22052355
     2356# What is the maximum length of a command?
     2357max_cmd_len=$max_cmd_len
     2358
    22062359# Does compiler simultaneously support -c and -o options?
    22072360compiler_c_o=$compiler_c_o
     
    23922545fi
    23932546
    2394 case "$ltmain" in
     2547case $ltmain in
    23952548*.sh)
    23962549  echo >> "$ofile"
    23972550  if test -z "$tagname"; then
    2398     case "$host_os" in
     2551    case $host_os in
    23992552    aix3*)
    24002553      cat <<\EOF >> "$ofile"
     
    24102563      ;;
    24112564    esac
    2412     case "$host" in
     2565    case $host in
    24132566    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
    24142567      cat <<'EOF' >> "$ofile"
     
    25262679#
    25272680#      dll = open(filename, O_RDONLY|O_BINARY);
    2528 #      if (!dll)
     2681#      if (dll < 1)
    25292682#       return 1;
    25302683#
Note: See TracChangeset for help on using the changeset viewer.