~ubuntu-branches/ubuntu/vivid/kakasi/vivid

« back to all changes in this revision

Viewing changes to .pc/0004-multiarch.patch/kakasi-config.in

  • Committer: Package Import Robot
  • Author(s): Osamu Aoki
  • Date: 2014-02-03 00:00:27 UTC
  • Revision ID: package-import@ubuntu.com-20140203000027-kky6m5v965daexa2
Tags: 2.3.5-2
Fix kakasi-config script.  Closes: #737378

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: kakasi-config [OPTIONS]
 
11
 
 
12
Options:
 
13
  [--prefix[=DIR]]
 
14
  [--exec-prefix[=DIR]]
 
15
  [--libs]
 
16
  [--cflags]
 
17
  [--help]
 
18
  [--version]
 
19
EOF
 
20
 
 
21
    exit $1
 
22
}
 
23
 
 
24
if test $# -eq 0; then
 
25
    usage 1
 
26
fi
 
27
 
 
28
cflags=false
 
29
libs=false
 
30
 
 
31
while test $# -gt 0; do
 
32
    case "$1" in
 
33
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
34
    *) optarg= ;;
 
35
    esac
 
36
 
 
37
    case "$1" in
 
38
    --prefix=*)
 
39
        prefix=$optarg
 
40
        if test $exec_prefix_set = no ; then
 
41
          exec_prefix=$optarg
 
42
        fi
 
43
        ;;
 
44
 
 
45
    --prefix)
 
46
        echo $prefix
 
47
        ;;
 
48
 
 
49
    --exec-prefix=*)
 
50
        exec_prefix=$optarg
 
51
        exec_prefix_set=yes
 
52
        ;;
 
53
 
 
54
    --exec-prefix)
 
55
        echo $exec_prefix
 
56
        ;;
 
57
 
 
58
    --version)
 
59
        echo @VERSION@
 
60
        exit 0
 
61
        ;;
 
62
 
 
63
    --help)
 
64
        usage 0
 
65
        ;;
 
66
 
 
67
    --cflags)
 
68
        if test @includedir@ != /usr/include ; then
 
69
          includes=-I@includedir@
 
70
        fi
 
71
        echo $includes
 
72
        ;;
 
73
 
 
74
    --libs)
 
75
        echo -L@libdir@ -lkakasi
 
76
        ;;
 
77
 
 
78
    *)
 
79
        usage
 
80
        exit 1
 
81
        ;;
 
82
    esac
 
83
    shift
 
84
done
 
85
 
 
86
exit 0