~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to Externals/lib3ds/lib3ds-config.in

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
prefix=@prefix@
 
4
exec_prefix=@exec_prefix@
 
5
exec_prefix_set=no
 
6
 
 
7
usage()
 
8
{
 
9
    cat <<EOF
 
10
Usage: lib3ds-config [OPTIONS] [LIBRARIES]
 
11
Options:
 
12
        [--prefix[=DIR]]
 
13
        [--exec-prefix[=DIR]]
 
14
        [--version]
 
15
        [--libs]
 
16
        [--cflags]
 
17
EOF
 
18
        exit $1
 
19
}
 
20
 
 
21
if test $# -eq 0; then
 
22
        usage 1 1>&2
 
23
fi
 
24
 
 
25
while test $# -gt 0; do
 
26
  case "$1" in
 
27
  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
28
  *) optarg= ;;
 
29
  esac
 
30
 
 
31
  case $1 in
 
32
    --prefix=*)
 
33
      prefix=$optarg
 
34
      if test $exec_prefix_set = no ; then
 
35
        exec_prefix=$optarg
 
36
      fi
 
37
      ;;
 
38
    --prefix)
 
39
      echo_prefix=yes
 
40
      ;;
 
41
    --exec-prefix=*)
 
42
      exec_prefix=$optarg
 
43
      exec_prefix_set=yes
 
44
      ;;
 
45
    --exec-prefix)
 
46
      echo_exec_prefix=yes
 
47
      ;;
 
48
    --version)
 
49
      echo @LIB3DS_VERSION@
 
50
      ;;
 
51
    --cflags)
 
52
      echo_cflags=yes
 
53
      ;;
 
54
    --libs)
 
55
      echo_libs=yes
 
56
      ;;
 
57
    *)
 
58
      usage 1 1>&2
 
59
      ;;
 
60
  esac
 
61
  shift
 
62
done
 
63
 
 
64
if test "$echo_prefix" = "yes"; then
 
65
        echo $prefix
 
66
fi
 
67
 
 
68
if test "$echo_exec_prefix" = "yes"; then
 
69
        echo $exec_prefix
 
70
fi
 
71
 
 
72
if test "$echo_cflags" = "yes"; then
 
73
      if test @includedir@ != /usr/include ; then
 
74
            echo -I@includedir@
 
75
      fi
 
76
fi
 
77
 
 
78
if test "$echo_libs" = "yes"; then
 
79
      if test @libdir@ != /usr/lib ; then
 
80
            my_linker_flags="-L@libdir@"
 
81
      fi
 
82
      echo ${my_linker_flags} -l3ds
 
83
fi      
 
84