/usr/bin/m17n-config is in libm17n-dev 1.7.0-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | #!/bin/sh
# m17n-config -- helper script for the m17n library. -*- coding: euc-jp; -*-
# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
# National Institute of Advanced Industrial Science and Technology (AIST)
# Registration Number H15PRO112
# See the end for copying conditions.
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
help ()
{
echo "Usage: $0 [API-LEVEL ...] [--version | --cflags | --libs]"
echo " API-LEVEL is CORE, SHELL (default), GUI, or FLT"
}
if test $# -eq 0; then
help 1>&2
exit 0
fi
while true; do
case $1 in
CORE) if test "x$API" = "x"; then
API="CORE"; LIBTOOLNAME="m17n-core";
fi;
shift;;
SHELL) if test "x$API" != "xGUI"; then
API="FLT"; LIBSHELL=" -lm17n"
if test "x$LIBFLT" = "x"; then
LIBTOOLNAME="m17n";
else
LIBTOOLNAME="m17n m17n-flt";
fi
fi;
shift;;
FLT) if test "x$API" != "xGUI"; then
API="FLT"; LIBFLT=" -lm17n-flt"
if test "x$LIBSHELL" = "x"; then
LIBTOOLNAME="m17n-flt";
else
LIBTOOLNAME="m17n m17n-flt";
fi
fi;
shift;;
GUI|X) API="GUI";
LIBSHELL=" -lm17n"; LIBFLT=" -lm17n-flt"; LIBGUI=" -lm17n-gui";
LIBTOOLNAME="m17n-gui";
shift;;
*) break;;
esac
done
LIBNAME="-lm17n-core"
if test "x$API" = "x"; then
LIBNAME="$LIBNAME -lm17n"
LIBTOOLNAME="m17n"
else
LIBNAME="$LIBNAME$LIBSHELL$LIBFLT$LIBGUI"
fi
case $1 in
--version)
echo "1.7.0";;
--libs)
if test "${prefix}" != "/usr"; then
echo "-L${libdir} ${LIBNAME}"
else
echo "${LIBNAME}"
fi;;
--cflags)
if test "${prefix}/include" != "/usr/include"; then
echo "-I${prefix}/include"
fi;;
*)
help
exit 1;;
esac
exit 0
cat > /dev/null <<EOF
/***en @page m17n-config Print compile/link options of the m17n library */
/***ja @page m17n-config m17n ¥é¥¤¥Ö¥é¥ê¤Î¥³¥ó¥Ñ¥¤¥ë¡¦¥ê¥ó¥¯¥ª¥×¥·¥ç¥ó¤Îɽ¼¨ */
/***
@section m17n-config-synopsis SYNOPSIS
m17n-config [API-LEVEL ...] [--cflags | --libs] [--version]
@section m17n-config-description DESCRIPTION
The shell script m17n-config prints compile and link options for a
program that uses the m17n library.
By default, the printed options are for such a program that uses SHELL
API of the libray. But, if the first argument is "CORE", "GUI", or
"FLT", the options are for a program that uses the corresponding API.
The other arguments are as follows.
- --cflags\n
Print compile option (e.g. -I/usr/local/include)
- --libs\n
Print link option (e.g. -L/usr/local/lib -lm17n)
- --version\n
Print version number of the m17n library.
*/
EOF
# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
# National Institute of Advanced Industrial Science and Technology (AIST)
# Registration Number H15PRO112
# This file is part of the m17n library.
# The m17n library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
# The m17n library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with the m17n library; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
|