xref: /PHP-7.4/scripts/php-config.in (revision 1d475375)
1#! /bin/sh
2
3prefix="@prefix@"
4version="@PHP_VERSION@"
5includedir="@includedir@/php"
6includes="-I$includedir -I$includedir/main -I$includedir/Zend"
7if test '@TSRM_DIR@' != ''; then
8    includes="$includes -I$includedir/TSRM"
9fi
10extension_dir='@EXTENSION_DIR@'
11
12case "$1" in
13--prefix)
14	echo $prefix;;
15--includes)
16	echo $includes;;
17--extension-dir)
18	echo $extension_dir;;
19--version)
20	echo $version;;
21*)
22	echo "Usage: $0 [--prefix|--includes|--extension-dir|--version]"
23	exit 1;;
24esac
25
26exit 0
27