~ubuntu-branches/ubuntu/trusty/liblas/trusty-proposed

« back to all changes in this revision

Viewing changes to apps/liblas-config

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2014-01-05 17:00:29 UTC
  • mfrom: (7.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140105170029-ddtp0j63x5jvck2u
Tags: 1.7.0+dfsg-2
Fixed missing linking of system boost component.
(closes: #733282)

Show diffs side-by-side

added added

removed removed

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