Changeset 357


Ignore:
Timestamp:
Jun 10, 2006 4:23:34 PM (13 years ago)
Author:
andreasw
Message:

initialize ADDLIBS with -lm so that CPLEX etc don't need to explicitly state that

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/configure

    r352 r357  
    16511651# retrieved by svn if they are not there yet.
    16521652# Initialize the ADDLIBS variable
    1653 ADDLIBS=
     1653ADDLIBS='-lm'
    16541654
    16551655
     
    24822482  if test "$GCC" = "yes"; then
    24832483    case "$CC" in
    2484       icc | */icc)
     2484      icc* | */icc*)
    24852485        ;;
    24862486      *)
     
    25482548      *-cygwin* | *-mingw*)
    25492549        case "$CC" in
    2550           cl | */cl)
     2550          cl* | */cl*)
    25512551            coin_opt_cflags='-O2'
    25522552            coin_add_cflags='-nologo'
     
    25572557      *-linux-*)
    25582558        case "$CC" in
    2559           icc | */icc)
     2559          icc* | */icc*)
    25602560            coin_opt_cflags="-O3 -ip"
    25612561            coin_add_cflags=""
     
    26102610      conftest$ac_exeext conftest.$ac_ext
    26112611            ;;
    2612           pgcc | */pgcc)
     2612          pgcc* | */pgcc*)
    26132613            coin_opt_cflags="-fast"
    26142614            coin_add_cflags="-Kieee -pc 64"
     
    28172817  CC="$MPICC"
    28182818fi
     2819
     2820# Correct ADDLIBS initialization if we are using the MS compiler
     2821case "$CC" in
     2822  cl)
     2823    ADDLIBS=lib.m
     2824    ;;
     2825esac
    28192826
    28202827ac_ext=c
     
    32173224  if test "$GXX" = "yes"; then
    32183225    case "$CXX" in
    3219       icpc | */icpc)
     3226      icpc* | */icpc*)
    32203227        ;;
    32213228      *)
     
    32843291      *-cygwin* | *-mingw*)
    32853292        case "$CXX" in
    3286           cl | */cl)
     3293          cl* | */cl*)
    32873294            coin_opt_cxxflags='-O2'
    32883295            coin_add_cxxflags='-nologo -EHsc -GR -MT'
     
    32933300      *-linux-*)
    32943301        case "$CXX" in
    3295           icpc | */icpc)
     3302          icpc* | */icpc*)
    32963303            coin_opt_cxxflags="-O3 -ip"
    32973304            coin_add_cxxflags=""
     
    33463353      conftest$ac_exeext conftest.$ac_ext
    33473354            ;;
    3348           pgCC | */pgCC)
     3355          pgCC* | */pgCC*)
    33493356            coin_opt_cxxflags="-fast"
    33503357            coin_add_cxxflags="-Kieee -pc 64"
     
    33643371      *-hp-*)
    33653372        case "$CXX" in
    3366           aCC | */aCC )
     3373          aCC* | */aCC* )
    33673374            coin_opt_cxxflags="-O"
    33683375            coin_add_cxxflags="-AA"
     
    35723579  *-mingw*)
    35733580    case $CXX in
    3574       cl)
     3581      cl*)
    35753582        coin_disable_shared=yes
    35763583        platform="Msys with cl"
     
    45834590*-*-irix6*)
    45844591  # Find out which ABI we are using.
    4585   echo '#line 4585 "configure"' > conftest.$ac_ext
     4592  echo '#line 4592 "configure"' > conftest.$ac_ext
    45864593  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    45874594  (eval $ac_compile) 2>&5
     
    57175724
    57185725# Provide some information about the compiler.
    5719 echo "$as_me:5719:" \
     5726echo "$as_me:5726:" \
    57205727     "checking for Fortran 77 compiler version" >&5
    57215728ac_compiler=`set X $ac_compile; echo $2`
     
    67846791   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    67856792   -e 's:$: $lt_compiler_flag:'`
    6786    (eval echo "\"\$as_me:6786: $lt_compile\"" >&5)
     6793   (eval echo "\"\$as_me:6793: $lt_compile\"" >&5)
    67876794   (eval "$lt_compile" 2>conftest.err)
    67886795   ac_status=$?
    67896796   cat conftest.err >&5
    6790    echo "$as_me:6790: \$? = $ac_status" >&5
     6797   echo "$as_me:6797: \$? = $ac_status" >&5
    67916798   if (exit $ac_status) && test -s "$ac_outfile"; then
    67926799     # The compiler can only warn and ignore the option if not recognized
     
    70527059   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    70537060   -e 's:$: $lt_compiler_flag:'`
    7054    (eval echo "\"\$as_me:7054: $lt_compile\"" >&5)
     7061   (eval echo "\"\$as_me:7061: $lt_compile\"" >&5)
    70557062   (eval "$lt_compile" 2>conftest.err)
    70567063   ac_status=$?
    70577064   cat conftest.err >&5
    7058    echo "$as_me:7058: \$? = $ac_status" >&5
     7065   echo "$as_me:7065: \$? = $ac_status" >&5
    70597066   if (exit $ac_status) && test -s "$ac_outfile"; then
    70607067     # The compiler can only warn and ignore the option if not recognized
     
    71567163   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    71577164   -e 's:$: $lt_compiler_flag:'`
    7158    (eval echo "\"\$as_me:7158: $lt_compile\"" >&5)
     7165   (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
    71597166   (eval "$lt_compile" 2>out/conftest.err)
    71607167   ac_status=$?
    71617168   cat out/conftest.err >&5
    7162    echo "$as_me:7162: \$? = $ac_status" >&5
     7169   echo "$as_me:7169: \$? = $ac_status" >&5
    71637170   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    71647171   then
     
    95019508  lt_status=$lt_dlunknown
    95029509  cat > conftest.$ac_ext <<EOF
    9503 #line 9503 "configure"
     9510#line 9510 "configure"
    95049511#include "confdefs.h"
    95059512
     
    96019608  lt_status=$lt_dlunknown
    96029609  cat > conftest.$ac_ext <<EOF
    9603 #line 9603 "configure"
     9610#line 9610 "configure"
    96049611#include "confdefs.h"
    96059612
     
    1194511952   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1194611953   -e 's:$: $lt_compiler_flag:'`
    11947    (eval echo "\"\$as_me:11947: $lt_compile\"" >&5)
     11954   (eval echo "\"\$as_me:11954: $lt_compile\"" >&5)
    1194811955   (eval "$lt_compile" 2>conftest.err)
    1194911956   ac_status=$?
    1195011957   cat conftest.err >&5
    11951    echo "$as_me:11951: \$? = $ac_status" >&5
     11958   echo "$as_me:11958: \$? = $ac_status" >&5
    1195211959   if (exit $ac_status) && test -s "$ac_outfile"; then
    1195311960     # The compiler can only warn and ignore the option if not recognized
     
    1204912056   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1205012057   -e 's:$: $lt_compiler_flag:'`
    12051    (eval echo "\"\$as_me:12051: $lt_compile\"" >&5)
     12058   (eval echo "\"\$as_me:12058: $lt_compile\"" >&5)
    1205212059   (eval "$lt_compile" 2>out/conftest.err)
    1205312060   ac_status=$?
    1205412061   cat out/conftest.err >&5
    12055    echo "$as_me:12055: \$? = $ac_status" >&5
     12062   echo "$as_me:12062: \$? = $ac_status" >&5
    1205612063   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1205712064   then
     
    1361913626   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1362013627   -e 's:$: $lt_compiler_flag:'`
    13621    (eval echo "\"\$as_me:13621: $lt_compile\"" >&5)
     13628   (eval echo "\"\$as_me:13628: $lt_compile\"" >&5)
    1362213629   (eval "$lt_compile" 2>conftest.err)
    1362313630   ac_status=$?
    1362413631   cat conftest.err >&5
    13625    echo "$as_me:13625: \$? = $ac_status" >&5
     13632   echo "$as_me:13632: \$? = $ac_status" >&5
    1362613633   if (exit $ac_status) && test -s "$ac_outfile"; then
    1362713634     # The compiler can only warn and ignore the option if not recognized
     
    1372313730   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1372413731   -e 's:$: $lt_compiler_flag:'`
    13725    (eval echo "\"\$as_me:13725: $lt_compile\"" >&5)
     13732   (eval echo "\"\$as_me:13732: $lt_compile\"" >&5)
    1372613733   (eval "$lt_compile" 2>out/conftest.err)
    1372713734   ac_status=$?
    1372813735   cat out/conftest.err >&5
    13729    echo "$as_me:13729: \$? = $ac_status" >&5
     13736   echo "$as_me:13736: \$? = $ac_status" >&5
    1373013737   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1373113738   then
     
    1593015937   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1593115938   -e 's:$: $lt_compiler_flag:'`
    15932    (eval echo "\"\$as_me:15932: $lt_compile\"" >&5)
     15939   (eval echo "\"\$as_me:15939: $lt_compile\"" >&5)
    1593315940   (eval "$lt_compile" 2>conftest.err)
    1593415941   ac_status=$?
    1593515942   cat conftest.err >&5
    15936    echo "$as_me:15936: \$? = $ac_status" >&5
     15943   echo "$as_me:15943: \$? = $ac_status" >&5
    1593715944   if (exit $ac_status) && test -s "$ac_outfile"; then
    1593815945     # The compiler can only warn and ignore the option if not recognized
     
    1619816205   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1619916206   -e 's:$: $lt_compiler_flag:'`
    16200    (eval echo "\"\$as_me:16200: $lt_compile\"" >&5)
     16207   (eval echo "\"\$as_me:16207: $lt_compile\"" >&5)
    1620116208   (eval "$lt_compile" 2>conftest.err)
    1620216209   ac_status=$?
    1620316210   cat conftest.err >&5
    16204    echo "$as_me:16204: \$? = $ac_status" >&5
     16211   echo "$as_me:16211: \$? = $ac_status" >&5
    1620516212   if (exit $ac_status) && test -s "$ac_outfile"; then
    1620616213     # The compiler can only warn and ignore the option if not recognized
     
    1630216309   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1630316310   -e 's:$: $lt_compiler_flag:'`
    16304    (eval echo "\"\$as_me:16304: $lt_compile\"" >&5)
     16311   (eval echo "\"\$as_me:16311: $lt_compile\"" >&5)
    1630516312   (eval "$lt_compile" 2>out/conftest.err)
    1630616313   ac_status=$?
    1630716314   cat out/conftest.err >&5
    16308    echo "$as_me:16308: \$? = $ac_status" >&5
     16315   echo "$as_me:16315: \$? = $ac_status" >&5
    1630916316   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1631016317   then
     
    1981919826      *-linux-*)
    1982019827        case "$CXX" in
    19821         icpc | */icpc)
     19828        icpc* | */icpc*)
    1982219829          RPATH_FLAGS=
    1982319830          for dir in $abs_lib_dir; do
Note: See TracChangeset for help on using the changeset viewer.