/usr/bin/gw-config is in kannel-dev 1.4.4-2build1.
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 | #!/bin/sh
usage()
{
echo "usage: $0 [--cflags] [--libs] [--version]"
exit 0
}
cflags=no
libs=no
version=no
test "$1" || usage
while test "$1"; do
case "$1" in
--cflags )
cflags=yes
;;
--libs )
libs=yes
;;
--version )
version=yes
;;
* )
usage
;;
esac
shift
done
test "$cflags" = yes && cat << FOO
-I/usr/include/kannel -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include
FOO
test "$libs" = yes && cat << FOO
-L/usr/lib/kannel -lgw -lwap -lgwlib -lpq -lmysqlclient -lssl -ldl -lpam -lpcreposix -lrt -lresolv -lnsl -lm -lpthread -lxml2 -lpcreposix -lpcre -L/usr/lib -lcrypto -lssl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -ldl -L/usr/local/lib -lsqlite -L/usr/local/lib -lsqlite3 -L/usr/lib/x86_64-linux-gnu -L/usr/lib -lhiredis -L/usr/lib -lct
FOO
test "$version" = yes && cat << FOO
1.4.4
FOO
|