OSDN Git Service

設定変更。
[wordring-tm/wordring-tm.git] / third_party / mecab-0.996 / mecab-config.in
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: mecab-config [OPTIONS]
11
12 Options:
13   [--cxx]
14   [--prefix[=DIR]]
15   [--exec-prefix[=DIR]]
16   [--libs]
17   [--cflags]
18   [--dicdir]
19   [--libexecdir]
20   [--sysconfdir]
21   [--libs-only-L]
22   [--libs-only-l]
23   [--inc-dir]
24   [--help]
25   [--version]
26 EOF
27
28     exit $1
29 }
30
31 if test $# -eq 0; then
32     usage 1
33 fi
34
35 cflags=false
36 libs=false
37
38 while test $# -gt 0; do
39     case "$1" in
40     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
41     *) optarg= ;;
42     esac
43
44     case "$1" in
45     --cxx)
46        echo @CXX@
47        ;;
48        
49     --cc)
50        echo @CC@
51        ;;
52        
53     --prefix=*)
54         prefix=$optarg
55         if test $exec_prefix_set = no ; then
56           exec_prefix=$optarg
57         fi
58         ;;
59
60     --prefix)
61         echo $prefix
62         ;;
63
64     --exec-prefix=*)
65         exec_prefix=$optarg
66         exec_prefix_set=yes
67         ;;
68
69     --exec-prefix)
70         echo $exec_prefix
71         ;;
72
73     --version)
74         echo @VERSION@
75         exit 0
76         ;;
77
78     --help)
79         usage 0
80         ;;
81
82     --cflags)
83         if test @includedir@ != /usr/include ; then
84           includes=-I@includedir@
85         fi
86         echo $includes
87         ;;
88
89     --libs)
90         echo -L@libdir@ -lmecab @MECAB_LIBS@
91         ;;
92
93     --dicdir)
94         echo @libdir@/mecab/dic
95         ;;
96         
97     --inc-dir)
98         echo @includedir@
99         ;;
100     
101     --libs-only-L)
102         echo @libdir@
103         ;;
104         
105     --libs-only-l)
106         echo -lmecab @MECAB_LIBS@ | sed s/-l//g;
107         ;;
108
109     --libexecdir)
110         echo @prefix@/libexec/mecab
111         ;;
112         
113     --sysconfdir)
114         echo @sysconfdir@
115         ;;
116
117     *)
118         usage
119         exit 1
120         ;;
121     esac
122     shift
123 done
124
125 exit 0