Skip to content

Commit

Permalink
enable -fm-extensions for divsufsort.h
Browse files Browse the repository at this point in the history
  • Loading branch information
kloetzl committed Feb 13, 2016
1 parent 8f3873f commit 132d999
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Expand Up @@ -32,6 +32,10 @@ AC_ARG_WITH([libdivsufsort],

AS_IF([test "x$with_libdivsufsort" != "xno"],
[
# The libdivsufsort header contains some Microsoft extension making
# compilation fail on certain systems (i.e. OS X). Add the following
# flag so the build runs smoothly.
CPPFLAGS="$CPPFLAGS -fms-extensions"
AC_CHECK_HEADERS([divsufsort.h],[have_libdivsufsort=yes],[have_libdivsufsort=no])
AC_CHECK_LIB(divsufsort, divsufsort, [], [have_libdivsufsort=no])
],
Expand Down

0 comments on commit 132d999

Please sign in to comment.