Changeset 245


Ignore:
Timestamp:
Mar 6, 2007 11:39:06 AM (15 years ago)
Author:
andreasw
Message:

add bugfix for libtool to handle -m32 on x86_64 with gnu compilers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/trunk/configure

    r239 r245  
    47984798
    47994799
    4800 unset ac_cv_file__________libtool
    4801 unset ac_cv_file_______libtool
    4802 unset ac_cv_file____libtool
    4803 
    48044800LIBTOOL=
    48054801if test -r ../libtool; then
     
    48134809  fi
    48144810fi
    4815 
    4816 # AC_CHECK_FILE seems to complain when doing cross compilation...(?!??)
    4817 #AC_CHECK_FILE([../libtool],
    4818 #              [coin_config_dir=..
    4819 #               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'])
    4820 #if test "x$LIBTOOL" = x; then
    4821 #  AC_CHECK_FILE([../../libtool],
    4822 #                [coin_config_dir=../..
    4823 #                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'])
    4824 #fi
    4825 # if test "x$LIBTOOL" = x; then
    4826 #   AC_CHECK_FILE([../../../libtool],
    4827 #                 [coin_config_dir=../../..
    4828 #                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
    4829 # fi
    48304811
    48314812if test "x$LIBTOOL" = x; then
     
    53805361*-*-irix6*)
    53815362  # Find out which ABI we are using.
    5382   echo '#line 5382 "configure"' > conftest.$ac_ext
     5363  echo '#line 5363 "configure"' > conftest.$ac_ext
    53835364  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    53845365  (eval $ac_compile) 2>&5
     
    78097790   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78107791   -e 's:$: $lt_compiler_flag:'`
    7811    (eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
     7792   (eval echo "\"\$as_me:7792: $lt_compile\"" >&5)
    78127793   (eval "$lt_compile" 2>conftest.err)
    78137794   ac_status=$?
    78147795   cat conftest.err >&5
    7815    echo "$as_me:7815: \$? = $ac_status" >&5
     7796   echo "$as_me:7796: \$? = $ac_status" >&5
    78167797   if (exit $ac_status) && test -s "$ac_outfile"; then
    78177798     # The compiler can only warn and ignore the option if not recognized
     
    80778058   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    80788059   -e 's:$: $lt_compiler_flag:'`
    8079    (eval echo "\"\$as_me:8079: $lt_compile\"" >&5)
     8060   (eval echo "\"\$as_me:8060: $lt_compile\"" >&5)
    80808061   (eval "$lt_compile" 2>conftest.err)
    80818062   ac_status=$?
    80828063   cat conftest.err >&5
    8083    echo "$as_me:8083: \$? = $ac_status" >&5
     8064   echo "$as_me:8064: \$? = $ac_status" >&5
    80848065   if (exit $ac_status) && test -s "$ac_outfile"; then
    80858066     # The compiler can only warn and ignore the option if not recognized
     
    81818162   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81828163   -e 's:$: $lt_compiler_flag:'`
    8183    (eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
     8164   (eval echo "\"\$as_me:8164: $lt_compile\"" >&5)
    81848165   (eval "$lt_compile" 2>out/conftest.err)
    81858166   ac_status=$?
    81868167   cat out/conftest.err >&5
    8187    echo "$as_me:8187: \$? = $ac_status" >&5
     8168   echo "$as_me:8168: \$? = $ac_status" >&5
    81888169   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    81898170   then
     
    1052610507  lt_status=$lt_dlunknown
    1052710508  cat > conftest.$ac_ext <<EOF
    10528 #line 10528 "configure"
     10509#line 10509 "configure"
    1052910510#include "confdefs.h"
    1053010511
     
    1062610607  lt_status=$lt_dlunknown
    1062710608  cat > conftest.$ac_ext <<EOF
    10628 #line 10628 "configure"
     10609#line 10609 "configure"
    1062910610#include "confdefs.h"
    1063010611
     
    1297012951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1297112952   -e 's:$: $lt_compiler_flag:'`
    12972    (eval echo "\"\$as_me:12972: $lt_compile\"" >&5)
     12953   (eval echo "\"\$as_me:12953: $lt_compile\"" >&5)
    1297312954   (eval "$lt_compile" 2>conftest.err)
    1297412955   ac_status=$?
    1297512956   cat conftest.err >&5
    12976    echo "$as_me:12976: \$? = $ac_status" >&5
     12957   echo "$as_me:12957: \$? = $ac_status" >&5
    1297712958   if (exit $ac_status) && test -s "$ac_outfile"; then
    1297812959     # The compiler can only warn and ignore the option if not recognized
     
    1307413055   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1307513056   -e 's:$: $lt_compiler_flag:'`
    13076    (eval echo "\"\$as_me:13076: $lt_compile\"" >&5)
     13057   (eval echo "\"\$as_me:13057: $lt_compile\"" >&5)
    1307713058   (eval "$lt_compile" 2>out/conftest.err)
    1307813059   ac_status=$?
    1307913060   cat out/conftest.err >&5
    13080    echo "$as_me:13080: \$? = $ac_status" >&5
     13061   echo "$as_me:13061: \$? = $ac_status" >&5
    1308113062   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1308213063   then
     
    1464414625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1464514626   -e 's:$: $lt_compiler_flag:'`
    14646    (eval echo "\"\$as_me:14646: $lt_compile\"" >&5)
     14627   (eval echo "\"\$as_me:14627: $lt_compile\"" >&5)
    1464714628   (eval "$lt_compile" 2>conftest.err)
    1464814629   ac_status=$?
    1464914630   cat conftest.err >&5
    14650    echo "$as_me:14650: \$? = $ac_status" >&5
     14631   echo "$as_me:14631: \$? = $ac_status" >&5
    1465114632   if (exit $ac_status) && test -s "$ac_outfile"; then
    1465214633     # The compiler can only warn and ignore the option if not recognized
     
    1474814729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1474914730   -e 's:$: $lt_compiler_flag:'`
    14750    (eval echo "\"\$as_me:14750: $lt_compile\"" >&5)
     14731   (eval echo "\"\$as_me:14731: $lt_compile\"" >&5)
    1475114732   (eval "$lt_compile" 2>out/conftest.err)
    1475214733   ac_status=$?
    1475314734   cat out/conftest.err >&5
    14754    echo "$as_me:14754: \$? = $ac_status" >&5
     14735   echo "$as_me:14735: \$? = $ac_status" >&5
    1475514736   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1475614737   then
     
    1695516936   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1695616937   -e 's:$: $lt_compiler_flag:'`
    16957    (eval echo "\"\$as_me:16957: $lt_compile\"" >&5)
     16938   (eval echo "\"\$as_me:16938: $lt_compile\"" >&5)
    1695816939   (eval "$lt_compile" 2>conftest.err)
    1695916940   ac_status=$?
    1696016941   cat conftest.err >&5
    16961    echo "$as_me:16961: \$? = $ac_status" >&5
     16942   echo "$as_me:16942: \$? = $ac_status" >&5
    1696216943   if (exit $ac_status) && test -s "$ac_outfile"; then
    1696316944     # The compiler can only warn and ignore the option if not recognized
     
    1722317204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1722417205   -e 's:$: $lt_compiler_flag:'`
    17225    (eval echo "\"\$as_me:17225: $lt_compile\"" >&5)
     17206   (eval echo "\"\$as_me:17206: $lt_compile\"" >&5)
    1722617207   (eval "$lt_compile" 2>conftest.err)
    1722717208   ac_status=$?
    1722817209   cat conftest.err >&5
    17229    echo "$as_me:17229: \$? = $ac_status" >&5
     17210   echo "$as_me:17210: \$? = $ac_status" >&5
    1723017211   if (exit $ac_status) && test -s "$ac_outfile"; then
    1723117212     # The compiler can only warn and ignore the option if not recognized
     
    1732717308   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1732817309   -e 's:$: $lt_compiler_flag:'`
    17329    (eval echo "\"\$as_me:17329: $lt_compile\"" >&5)
     17310   (eval echo "\"\$as_me:17310: $lt_compile\"" >&5)
    1733017311   (eval "$lt_compile" 2>out/conftest.err)
    1733117312   ac_status=$?
    1733217313   cat out/conftest.err >&5
    17333    echo "$as_me:17333: \$? = $ac_status" >&5
     17314   echo "$as_me:17314: \$? = $ac_status" >&5
    1733417315   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1733517316   then
     
    2004120022
    2004220023  case $build in
     20024    *x86_64-*)
     20025# Here we need to check if -m32 is specified.  If so, we need to correct sys_lib_search_path_spec
     20026      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
     20027        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
     20028echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
     20029        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
     20030        mv conftest.bla libtool
     20031        chmod 755 libtool
     20032      fi
     20033      ;;
    2004320034    *-cygwin* | *-mingw*)
    2004420035    case "$CXX" in
     
    2023220223ac_save_FFLAGS=$FFLAGS
    2023320224FFLAGS="$FFLAGS $ac_verb"
    20234 (eval echo $as_me:20234: \"$ac_link\") >&5
     20225(eval echo $as_me:20225: \"$ac_link\") >&5
    2023520226ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    2023620227echo "$ac_f77_v_output" >&5
     
    2031020301ac_save_FFLAGS=$FFLAGS
    2031120302FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    20312 (eval echo $as_me:20312: \"$ac_link\") >&5
     20303(eval echo $as_me:20303: \"$ac_link\") >&5
    2031320304ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    2031420305echo "$ac_f77_v_output" >&5
Note: See TracChangeset for help on using the changeset viewer.