-
Notifications
You must be signed in to change notification settings - Fork 1
/
libdynd-config.in
44 lines (37 loc) · 1.1 KB
/
libdynd-config.in
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
#!/bin/bash
if [ "$1" == "-lflag" ]; then
echo @DYND_LINK_FLAG@
exit 0
fi
if [ "$1" == "-libname" ]; then
echo @DYND_LIB_FILE@
exit 0
fi
if [ "$1" == "-libpath" ]; then
# This script should be in .../bin relative to .../lib.
# Note this isn't robust against symbolic links, etc.
DIR=`dirname $0`
echo `dirname ${DIR}`/lib@LIB_SUFFIX@/@DYND_STATIC_LIB_DIR@@DYND_LIB_FILE@
exit 0
fi
if [ "$1" == "-includedir" ]; then
# This script should be in .../bin relative to .../include.
# Note this isn't robust against symbolic links, etc.
DIR=`dirname $0`
echo `dirname ${DIR}`/include
exit 0
fi
if [ "$1" == "-version" ]; then
echo @DYND_VERSION_STRING@
exit 0
fi
echo Usage: $0 OPTION
echo Print information for linking libdynd.
echo
echo Options:
echo -lflag Prints the linker option to link libdynd.
echo -libname Prints the name of the libdynd library.
echo -libpath Prints the full path of the libdynd library.
echo -includedir Prints the directory with the libdynd include files.
echo -version Prints the version of libdynd.
exit 1