5 # Copyright (C) 2006, 2007 Elfyn McBratney.
8 # This file is part of eruntime.
12 # eruntime is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License, version 2,
14 # as published by the Free Software Foundation.
16 # eruntime is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with eruntime; if not, write to:
24 # Free Software Foundation, Inc.
27 # Boston, MA 02111-1307
32 # Elfyn McBratney <elfyn.mcbratney@gmail.com>
36 prog
="$(basename "$0")"
41 [[ ${st} == 0 ]] || out
=>&2
43 echo "Usage: ${prog} [options...]" ${out}
44 if [[ ${st} == 0 ]]; then
45 echo " --cflags Compiler flags" ${out}
46 echo " --inc Include flags" ${out}
47 echo " --libs Linker flags" ${out}
48 echo " -h, --help Display usage information" ${out}
57 echo "${prog}: error: $*"
62 [[ $# == 0 ]] && usage
1
65 exec_prefix
="@exec_prefix@"
66 includedir
="@includedir@"
75 [[ ${includedir} != /usr/include ]] && inc="${inc} -I${includedir}/eruntime
"
76 [[ ${libdir} != /usr/lib ]] && libs="${libs} -L${libdir} -leruntime"
78 while [[ $# > 0 ]]; do
83 echo -n ${cflags} ${inc} ''
99 die
"unrecognised option \`${arg}'"
103 die
"invalid argument \`${arg}'"
112 # vim: ts=8 sw=8 noet fdm=marker tw=80