#!/bin/sh # m17n-config -- helper script for the m17n library. -*- coding: euc-jp; -*- # Copyright (C) 2003, 2004 # National Institute of Advanced Industrial Science and Technology (AIST) # Registration Number H15PRO112 # See the end for copying conditions. prefix=@prefix@ exec_prefix=@exec_prefix@ help () { echo "Usage: $0 [CORE | GUI] [--version | --cflags | --libs | --libtool]" } if test $# -eq 0; then help 1>&2 exit 0 fi case $1 in CORE) LIBNAME="-lm17n-core"; LIBTOOLNAME="m17n-core"; shift;; GUI|X) LIBNAME="-lm17n-core -lm17n -lm17n-gui"; LIBTOOLNAME="m17n-gui"; shift;; *) LIBNAME="-lm17n-core -lm17n"; LIBTOOLNAME="m17n"; ;; esac case $1 in --version) echo "@PACKAGE_VERSION@";; --libs) if test "@libdir@" != "/usr/lib"; then echo "-L@libdir@ ${LIBNAME}" else echo "${LIBNAME}" fi;; --cflags) if test "@includedir@" != "/usr/include"; then echo "-I@includedir@" fi;; --libtool) echo "@libdir@/lib${LIBTOOLNAME}.la" ;; *) help exit 1;; esac exit 0 cat > /dev/null <