2 # m17n-config -- helper script for the m17n library. -*- coding: euc-jp; -*-
3 # Copyright (C) 2003, 2004, 2006, 2007
4 # National Institute of Advanced Industrial Science and Technology (AIST)
5 # Registration Number H15PRO112
6 # See the end for copying conditions.
9 exec_prefix=@exec_prefix@
13 echo "Usage: $0 [API-LEVEL ...] [--version | --cflags | --libs | --libtool]"
14 echo " API-LEVEL is CORE, SHELL (default), GUI, or FLT"
17 if test $# -eq 0; then
24 CORE) if test "x$API" = "x"; then
25 API="CORE"; LIBTOOLNAME="m17n-core";
29 SHELL) if test "x$API" != "xGUI"; then
30 API="FLT"; LIBSHELL=" -lm17n"
31 if test "x$LIBFLT" = "x"; then
34 LIBTOOLNAME="m17n m17n-flt";
39 FLT) if test "x$API" != "xGUI"; then
40 API="FLT"; LIBFLT=" -lm17n-flt"
41 if test "x$LIBSHELL" = "x"; then
42 LIBTOOLNAME="m17n-flt";
44 LIBTOOLNAME="m17n m17n-flt";
50 LIBSHELL=" -lm17n"; LIBFLT=" -lm17n-flt"; LIBGUI=" -lm17n-gui";
51 LIBTOOLNAME="m17n-gui";
60 if test "x$API" = "x"; then
61 LIBNAME="$LIBNAME -lm17n"
64 LIBNAME="$LIBNAME$LIBSHELL$LIBFLT$LIBGUI"
69 echo "@PACKAGE_VERSION@";;
72 if test "@libdir@" != "/usr/lib"; then
73 echo "-L@libdir@ ${LIBNAME}"
79 if test "@includedir@" != "/usr/include"; then
84 for name in $LIBTOOLNAME; do
85 echo -n "@libdir@/lib${name}.la "
95 /***en @page m17n-config Print compile/link options of the m17n library */
96 /***ja @page m17n-config m17n ¥é¥¤¥Ö¥é¥ê¤Î¥³¥ó¥Ñ¥¤¥ë¡¦¥ê¥ó¥¯¥ª¥×¥·¥ç¥ó¤Îɽ¼¨ */
99 @section m17n-config-synopsis SYNOPSIS
101 m17n-config [API-LEVEL ...] [--cflags | --libs | --libtool] [--version]
103 @section m17n-config-description DESCRIPTION
105 The shell script m17n-config prints compile and link options for a
106 program that uses the m17n library.
108 By default, the printed options are for such a program that uses SHELL
109 API of the libray. But, if the first argument is "CORE", "GUI", or
110 "FLT", the options are for a program that uses the corresponding API.
112 The other arguments are as follows.
115 Print compile option (e.g. -I/usr/local/include)
117 Print link option (e.g. -L/usr/local/lib -lm17n)
119 Print libtool option (e.g. /usr/local/lib/libm17n.la)
121 Print version number of the m17n library.
125 # Copyright (C) 2003, 2004
126 # National Institute of Advanced Industrial Science and Technology (AIST)
127 # Registration Number H15PRO112
129 # This file is part of the m17n library.
131 # The m17n library is free software; you can redistribute it and/or
132 # modify it under the terms of the GNU Lesser General Public License
133 # as published by the Free Software Foundation; either version 2.1 of
134 # the License, or (at your option) any later version.
136 # The m17n library is distributed in the hope that it will be useful,
137 # but WITHOUT ANY WARRANTY; without even the implied warranty of
138 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
139 # Lesser General Public License for more details.
141 # You should have received a copy of the GNU Lesser General Public
142 # License along with the m17n library; if not, write to the Free
143 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
144 # Boston, MA 02110-1301, USA.