Browse Source

Add LIBLAS_INC to CPPFLAGS when compiling test case

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57541 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 11 years ago
parent
commit
1ca319d14a
2 changed files with 439 additions and 433 deletions
  1. 436 433
      configure
  2. 3 0
      configure.in

File diff suppressed because it is too large
+ 436 - 433
configure


+ 3 - 0
configure.in

@@ -806,8 +806,10 @@ else
   LIBLAS=
   ac_save_libs="$LIBS"
   ac_save_cflags="$CFLAGS"
+  ac_save_cppflags="$CPPFLAGS"
   LIBS="$LIBS $LIBLAS_LIBS"
   CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
+  CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
   AC_TRY_LINK([#include <liblas/capi/liblas.h>],[LASReader_Create("foo");],,[
   AC_TRY_LINK([#include <liblas/capi/liblas.h>],[LASReader_Create("foo");],LAS_LIBS="$LAS_LIBS",[
   AC_MSG_ERROR([*** Unable to locate libLAS library.])
@@ -815,6 +817,7 @@ else
   ])
   LIBS=${ac_save_libs}
   CFLAGS=${ac_save_cflags}
+  CPPFLAGS=${ac_save_cppflags}
 
   AC_DEFINE(HAVE_LIBLAS)
 fi