/usr/bin/falcon-conf is in falconpl-dev 0.9.6.9-git20120606-2.1+b1.
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 | #!/bin/sh
#
# Falcon configuration script
#
# Useful tool to compile falcon modules and embedding applications.
#
# (C) Giancarlo Niccolai 2010
SYSTEM=""
usage()
{
echo "The Falcon Programming Language"
echo ""
echo "Build configuration tool for Falcon 0.9.6.9"
echo "Usage: $0 params"
echo " -c, --cflags writes CFLAGS for modules"
echo " -e, --embed-flags writes CFLAGS for embedding applications"
echo " --cflags-only-I writes only the include part of CFLAGS"
echo " -i, --include writes the FALCON inlcude directory"
echo " -l, --libs write library flags for linking modules"
echo " -L, --embed-libs library flags and libraries for embedding apps"
echo " --libs-only-l write the libraries that must be linked"
echo " --libs-only-L write the directory where library is installed"
echo " -p, --ldpath Path for LD_LIBRARY_PATH"
echo " -h, --help this help"
echo " --moddir write the module installation directory"
echo " --appdir write falcon applications installation directory"
echo " --cmake Position of the CMAKE module for auto-build configurations"
echo ""
echo "Include this script in your makefiles with \$( $0 <params> )"
}
detectSystem()
{
uname | grep Mac && SYSTEM='mac' || SYSTEM='unix'
}
if [ -z "$*" ]; then
usage
exit
fi
detectSystem
FALCONLIB="-lfalcon_engine"
if [ "$SYSTEM" = "mac" ]; then
CFLAGS="-fPIC -dynamiclib -fno-common"
LDFLAGS="-module -dload -dynamiclib"
else
CFLAGS="-fPIC -shared"
LDFLAGS="-module -dload -shared"
fi
INC_PATH="/usr/include"
LIB_PATH="/usr/lib"
LIB_LD_PATH="/usr/lib"
INC_FLAGS="-I$INC_PATH"
LIB_FLAGS="-L$LIB_PATH"
MODDIR="/usr/lib/falcon"
APPDIR="/usr/lib/falcon/apps"
CMAKEMOD="/usr/share/falconpl/cmake/FalconConfig.cmake"
while [ -n "$*" ]; do
case "$1" in
"-c"| "--cflags") echo "$INC_FLAGS $CFLAGS" ;;
"-e"| "--embed-flags") echo "$INC_FLAGS" ;;
"--cflags-only-I") echo "$INC_FLAGS" ;;
"--cflags-only-other") echo "$CFLAGS" ;;
"-i"|"--include") echo "$INC_PATH";;
"-l"| "--libs") echo "$LIB_FLAGS $LDFLAGS $FALCONLIB" ;;
"-L"| "--embed-libs") echo "$LIB_FLAGS $FALCONLIB" ;;
"--libs-only-L") echo "$LIB_PATH" ;;
"-p" | "--ldpath") echo "$LIB_LD_PATH" ;;
"--libs-only-l") echo "$FALCONLIB" ;;
"--moddir") echo "$MODDIR";;
"--appdir") echo "$APPDIR";;
"--cmake") echo "$CMAKEMOD";;
"-h" | "--help" | *)
usage
exit;;
esac
shift
done
|