COIN-OR::LEMON - Graph Library

Changeset 1385:49d1ca28ebd8 in lemon-0.x


Ignore:
Timestamp:
04/25/05 00:26:37 (14 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1838
Message:

Don't set {GLPK,CPLEX}_{CFLAGS,LIBS} if the check fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • config/lp.m4

    r1382 r1385  
    3131    GLPK_LIBS="-lglpk"
    3232
    33     lx_save_cxxflags="$CXXFLAGS";
    34     lx_save_ldflags="$LDFLAGS";
    35     lx_save_libs="$LIBS";
     33    lx_save_cxxflags="$CXXFLAGS"
     34    lx_save_ldflags="$LDFLAGS"
     35    lx_save_libs="$LIBS"
    3636    CXXFLAGS="$GLPK_CFLAGS"
    3737    LDFLAGS="$GLPK_LDFLAGS"
     
    6363      AC_MSG_RESULT([yes])
    6464    else
     65      $GLPK_CFLAGS=""
     66      $GLPK_LDFLAGS=""
     67      $GLPK_LIBS=""
    6568      AC_MSG_RESULT([no])
    6669    fi
     
    105108    CPLEX_LIBS="-lcplex -lm -lpthread"
    106109
    107     lx_save_cxxflags="$CXXFLAGS";
    108     lx_save_ldflags="$LDFLAGS";
    109     lx_save_libs="$LIBS";
     110    lx_save_cxxflags="$CXXFLAGS"
     111    lx_save_ldflags="$LDFLAGS"
     112    lx_save_libs="$LIBS"
    110113    CXXFLAGS="$CPLEX_CFLAGS"
    111114    LDFLAGS="$CPLEX_LDFLAGS"
     
    119122      int main(int argc, char* argv[])
    120123      {
    121         CPXENVptr env = NULL;
     124        CPXENVptr env = NULL;
    122125        return 0;
    123126      }'
     
    135138      AC_MSG_RESULT([yes])
    136139    else
     140      $CPLEX_CFLAGS=""
     141      $CPLEX_LDFLAGS=""
     142      $CPLEX_LIBS=""
    137143      AC_MSG_RESULT([no])
    138144    fi
Note: See TracChangeset for help on using the changeset viewer.