Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add /usr/include/atlas to include paths
  • Loading branch information
Soeren Sonnenburg committed Dec 10, 2011
1 parent a9ed516 commit dd53927
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/configure
Expand Up @@ -3156,31 +3156,35 @@ EOF
ALTERNATIVE_ATLASDIR="/usr/lib/atlas"
fi

if cc_check -llapack -lcblas -llapack_atlas
if cc_check -I/usr/include/atlas -llapack -lcblas -llapack_atlas
then
echores "yes"
INCLUDES="$INCLUDES -I/usr/include/atlas"
HAVE_ATLAS='#define HAVE_ATLAS 1'
HAVE_LAPACK='#define HAVE_LAPACK 1'
DEFINES="$DEFINES -DHAVE_ATLAS -DHAVE_LAPACK"
POSTLINKFLAGS="$POSTLINKFLAGS -llapack -lcblas -llapack_atlas"
elif cc_check -L${ALTERNATIVE_ATLASDIR} -llapack -lcblas -llapack_atlas
elif cc_check -I/usr/include/atlas -L${ALTERNATIVE_ATLASDIR} -llapack -lcblas -llapack_atlas
then
echores "yes"
INCLUDES="$INCLUDES -I/usr/include/atlas"
HAVE_ATLAS='#define HAVE_ATLAS 1'
HAVE_LAPACK='#define HAVE_LAPACK 1'
DEFINES="$DEFINES -DHAVE_ATLAS -DHAVE_LAPACK"
POSTLINKFLAGS="$POSTLINKFLAGS -L${ALTERNATIVE_ATLASDIR} -llapack -lcblas -llapack_atlas"
else
if cc_check -llapack -lcblas -latlas
if cc_check -I/usr/include/atlas -llapack -lcblas -latlas
then
echores "yes"
INCLUDES="$INCLUDES -I/usr/include/atlas"
HAVE_ATLAS='#define HAVE_ATLAS 1'
HAVE_LAPACK='#define HAVE_LAPACK 1'
DEFINES="$DEFINES -DHAVE_ATLAS -DHAVE_LAPACK"
POSTLINKFLAGS="$POSTLINKFLAGS -llapack -lcblas -latlas"
elif cc_check -L${ALTERNATIVE_ATLASDIR} -llapack -lcblas -latlas
elif cc_check -I/usr/include/atlas -L${ALTERNATIVE_ATLASDIR} -llapack -lcblas -latlas
then
echores "yes"
INCLUDES="$INCLUDES -I/usr/include/atlas"
HAVE_ATLAS='#define HAVE_ATLAS 1'
HAVE_LAPACK='#define HAVE_LAPACK 1'
DEFINES="$DEFINES -DHAVE_ATLAS -DHAVE_LAPACK"
Expand Down

0 comments on commit dd53927

Please sign in to comment.