liblas-config 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #!/bin/sh
  2. prefix=$OSGEO4W_ROOT_MSYS
  3. exec_prefix=$OSGEO4W_ROOT_MSYS/bin
  4. libdir=$OSGEO4W_ROOT_MSYS/lib
  5. INCLUDES="-I${prefix}/include "
  6. LIBS="-L$libdir -llas -llas_c"
  7. GDAL_INCLUDE=""
  8. if test -n "$GDAL_INCLUDE" ; then
  9. INCLUDES="$INCLUDES -I$GDAL_INCLUDE"
  10. fi
  11. GDAL_LIBRARY=""
  12. if test -n "$GDAL_LIBRARY" ; then
  13. LIBS="$LIBS $GDAL_LIBRARY"
  14. fi
  15. GEOTIFF_INCLUDE=""
  16. if test -n "$GEOTIFF_INCLUDE" ; then
  17. INCLUDES="$INCLUDES -I$GEOTIFF_INCLUDE"
  18. fi
  19. GEOTIFF_LIBRARY=""
  20. if test -n "$GEOTIFF_LIBRARY" ; then
  21. LIBS="$LIBS $GEOTIFF_LIBRARY"
  22. fi
  23. ORACLE_INCLUDE=""
  24. if test -n "$ORACLE_INCLUDE" ; then
  25. INCLUDES="$INCLUDES -I$ORACLE_INCLUDE"
  26. fi
  27. ORACLE_OCI_LIBRARY=""
  28. if test -n "$ORACLE_OCI_LIBRARY" ; then
  29. LIBS="$LIBS $ORACLE_OCI_LIBRARY "
  30. fi
  31. TIFF_INCLUDE=""
  32. if test -n "$TIFF_INCLUDE" ; then
  33. INCLUDES="$INCLUDES -I$TIFF_INCLUDE"
  34. fi
  35. TIFF_LIBRARY=""
  36. if test -n "$TIFF_LIBRARY" ; then
  37. LIBS="$LIBS $TIFF_LIBRARY"
  38. fi
  39. LIBXML2_INCLUDE_DIR=""
  40. if test -n "$LIBXML2_INCLUDE_DIR" ; then
  41. INCLUDES="$INCLUDES -I$LIBXML2_INCLUDE_DIR"
  42. fi
  43. LIBXML2_LIBRARIES=""
  44. if test -n "$LIBXML2_LIBRARIES" ; then
  45. LIBS="$LIBS $LIBXML2_LIBRARIES"
  46. fi
  47. LASZIP_INCLUDE_DIR=""
  48. if test -n "$LASZIP_INCLUDE_DIR" ; then
  49. INCLUDES="$INCLUDES -I$LASZIP_INCLUDE_DIR"
  50. fi
  51. LASZIP_LIBRARY=""
  52. if test -n "$LASZIP_LIBRARY" ; then
  53. LIBS="$LIBS $LASZIP_LIBRARY"
  54. fi
  55. usage()
  56. {
  57. cat <<EOF
  58. Usage: liblas-config [OPTIONS]
  59. Options:
  60. [--libs]
  61. [--cflags]
  62. [--cxxflags]
  63. [--defines]
  64. [--includes]
  65. EOF
  66. exit $1
  67. }
  68. if test $# -eq 0; then
  69. usage 1 1>&2
  70. fi
  71. case $1 in
  72. --libs)
  73. echo $OSGEO4W_ROOT_MSYS/lib/liblas_c.lib
  74. ;;
  75. --prefix)
  76. echo ${prefix}
  77. ;;
  78. --ldflags)
  79. echo -L${libdir}
  80. ;;
  81. --defines)
  82. echo
  83. ;;
  84. --includes)
  85. echo ${INCLUDES}
  86. ;;
  87. --cflags)
  88. echo
  89. ;;
  90. --cxxflags)
  91. echo -pedantic -ansi -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long -std=c++98
  92. ;;
  93. *)
  94. usage 1 1>&2
  95. ;;
  96. esac