*** empty log message ***
[m17n/libotf.git] / libotf-config.in
1 #!/bin/sh
2 # libotf-config -- helper script for libotf.
3 # Copyright (C) 2003, 2004
4 #   National Institute of Advanced Industrial Science and Technology (AIST)
5 #   Registration Number H15PRO167
6 # See the end for copying conditions.
7
8 prefix=@prefix@
9 exec_prefix=@exec_prefix@
10
11 help ()
12 {
13   echo "Usage: otflib-config [--version | --libs | --cflags ]"
14 }
15
16 if test $# -eq 0; then
17   help 1>&2
18   exit 0
19 fi
20
21 case $1 in
22 --version)
23   echo "@PACKAGE_VERSION@";;
24
25 --libs)
26   if test "@libdir@" != "/usr/lib"; then
27     echo "-L@libdir@ -lotf"
28   else
29     echo "-lotf"
30   fi;;
31
32 --cflags)
33   if test "@includedir@" != "/usr/include"; then
34     echo "-I@includedir@"
35   fi;;
36
37 *)
38     help
39     exit 1;;
40 esac
41
42 # Copyright (C) 2003, 2004
43 #   National Institute of Advanced Industrial Science and Technology (AIST)
44 #   Registration Number H15PRO167
45
46 # This file is part of libotf.
47
48 # Libotf is free software; you can redistribute it and/or modify it
49 # under the terms of the GNU Lesser General Public License as published
50 # by the Free Software Foundation; either version 2.1 of the License, or
51 # (at your option) any later version.
52
53 # Libotf is distributed in the hope that it will be useful, but WITHOUT
54 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
55 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
56 # License for more details.
57
58 # You should have received a copy of the GNU Lesser General Public
59 # License along with this library, in a file named COPYING; if not,
60 # write to the Free Software Foundation, Inc., 59 Temple Place, Suite
61 # 330, Boston, MA 02111-1307, USA.